Code:
Problem description:
mob/verb
WatchArena()
set name = "Watch Arena"
if(usr.arenawatching==1)
usr.client.perspective=MOB_PERSPECTIVE
usr.client.eye=usr
usr.client.view=6
usr.arenawatching=0
usr.PK=1
if(istype(usr.loc,/turf/NONPK))
usr.PK=0
usr << "You are not watching the arena anymore."
else
usr.client.perspective=EYE_PERSPECTIVE
usr.client.eye=locate(74,12,18)
usr.client.view=21
usr.arenawatching=1
usr.PK=0
usr << "You are watching the arena now."
i get undefined var 3 times for all the arenawatching o.o help plz
ID:140215
![]() Mar 27 2010, 9:14 pm
|
|
you mean like mob/verb? if so yes, i tried your way just made e get 584 errors.
mob/verb I changed it your way to mob/var/arenawatching |
You should read the The Guide before you try doing something like that.(I presume you don't even know how to define a variable properly.)
mob/var/arenawatch That is very basic. It makes me think you haven't read anything. |
can you guys help me with just one more thing?
my problem is i dont want it to say in who everyone i make GM is owner....i just want it to say whos co-owner enforcer owner ect.i tried many things and none seemed to work mob/verb/Who() also wat u gav me for the other coding still aint work and i dont rip -_- i just dont understand o.o mob/var/arenawatch i hav it in verbs btw |
Buck1995 wrote:
can you guys help me with just one more thing? mob/verb/Who() also wat u gav me for the other coding still aint work and i dont rip -_- i just dont understand o.o mob/var/arenawatch i hav it in verbs btwPlease speak with proper punctuation and grammar. mob/var/arenawatching Works if you have the turf PK defined.(Well, I can't test because I don't have your map.) turf/PK And as for the Who(), you need to define the variables. mob/var/AFK // You will want to tidy up the variable definitions a bit. It will only tell you who you are. Now I suggest you read the guide to actually know how this works.... |
Ok i read the guide and changed the coding a bit...Also i fixed your Watch Arena a bit and added stop Watching...Also used little bit of coding for GM who this is what i got.
Gm Who: mob/verb/Who() Watch Arena: mob/var/arenawatching Thanks Alot Blafblabla You Really Helped As The Other Person Can See I Know What Im Doing -.- |
Buck1995 wrote:
Ok i read the guide and changed the coding a bit...Also i fixed your Watch Arena a bit and added stop Watching...Also used little bit of coding for GM who this is what i got. mob/verb/Who() Watch Arena: mob/var/arenawatching Thanks Alot Blafblabla You Really Helped As The Other Person Can See I Know What Im Doing -.- No problem Buck1995, just that when you are posting something that you say works, make sure it works. That wouldn't work because you didn't have my full code in your example. And anyway, the Watch Arena verb was working properly. You have exactly what I put. |
Blafblabla wrote:
No problem Buck1995, just that when you are posting something that you say works, make sure it works. Suggesting you take your own advice, here. The horrible post formatting here is making it impossible for me to actually figure out what is actually being discussed, but I can say that what has been posted by you is wrong to some degree or another. |
Yes sorry about that it wasnt fixed had to change it now i know for certain its fixed and i read the DM guide i know how to define a var now thank you...mob/var and under write what you need to define....Also im working on a sub clan but coding seems fine when i test it out it says for sub clan if i choose hyuuga it will say are you sure you want to choose uzumaki the coding seems fine....
mob/var |
You should set all the vars as 0 and remove all the unnecessary coding such as usr.Naruto=0 and usr.Sasuke=0.
That's all the extra work unless if you were copying and pasting. |
mob/var/arenawatching