mob/proc/deathcheck(mob/M) |
Problem description:
Any time you kill some one who not in our village, they get booted idk why
ID:141706
Dec 5 2008, 8:00 pm
|
||
Code:
Problem description: Any time you kill some one who not in our village, they get booted idk why | ||
#1 Dec 5 2008, 8:13 pm
|
|
Show your DieParty() proc.
| |
Code:
<dm> mob proc DieParty() if(src.INEXAM) src.INEXAM=0 src.hasearth=0 src.hasheaven=0 src.correct=0 src.taking=0 src.verbs -= /mob/Exam/verb/Leave_Exam src<<"You have failed the exam!" spawn() src.SpawnV() <dm> //note that die party shows you faild the chunnin exams | |
Wow, what a misnomer. Procs should be named by what they do, common sense.
So the problem isn't in this proc, nor is it directly in the deathcheck proc. It's in something, show the other procs included. | |
#4 Dec 5 2008, 8:21 pm
|
|
Code:
<dm> mob/proc/SpawnV() if(!src.client)del(src) if(src.village=="Hidden Leaf") if(src.level<= 99) src.loc=locate(/turf/Spawn) else if(src.rank=="Leaf-NiN ChuuNiN") src.loc=locate(/turf/SpawnH1) src.see_invisible = 0 src.sight &= ~SEE_SELF src.FinishDeath() else if(prob(50)) src.loc=locate(/turf/SpawnH2) src.see_invisible = 0 src.sight &= ~SEE_SELF src.FinishDeath() else src.loc=locate(/turf/SpawnH3) src.see_invisible = 0 src.sight &= ~SEE_SELF src.FinishDeath() if(src.village=="Sand Village") if(src.level<=100) src.loc=locate(/turf/Spawn2) else src.see_invisible = 0 src.sight &= ~SEE_SELF if(prob(50)) src.loc=locate(/turf/SpawnSH1) src.FinishDeath() else src.loc=locate(/turf/SpawnSH2) src.FinishDeath() if(src.village=="Hidden Mist Village") if(src.level<= 100) src.loc=locate(/turf/Spawn3) else src.loc=locate(/turf/SpawnMH1) src.FinishDeath() if(src.village=="Snow Village") src.loc=locate(/turf/SpawnSnow) if(src.village=="Hidden Star") src.loc=locate(/turf/SpawnStar) else if(src.village=="Akatsuki") src.loc=locate(/turf/SpawnAka) else if(src.village=="Sound Village") src.loc=locate(/turf/Sound/LeaveSound) else if(src.village=="Missing-NiN") src.loc=locate(/turf/Akatsuki) else if(src.village=="Hidden Village Of Waterfall") src.loc=locate(/turf/waterfallspawn) //This the only proc that is acualy there, I`m not sure if its impoperly spaced or what but something is wrong | |
Hmm.. show FinishDeath(). I can't seem to find the problem in these procs that would be booting players. I'm assuming they are players with clients.
| |
#6 Dec 5 2008, 8:28 pm
|
|
Code:
<dm> mob/proc/FinishDeath() spawn(10) src.dead=0 | |
If this is all there is, I'm missing something, because I can't find anything that would cause the player to be booted.
| |
Do u have msn or something, so i can just send u the code file to take a look?
| |