How would make it so that when u talk to an NPC it teleport you to a battlle place. (I know how to do that) but how would you do it so that it doesnt spawn u at the same place that somone was alrady spawned
So...When u talk to them u are sent to the batllte place to fight them but when somone else wants to fight them it talks them to the eact same place. how would u make it so that it taks them to the same place but the people can see each other on the screen fighting somone else.
ID:166825
![]() Jun 10 2006, 10:59 am
|
|
![]() Jun 10 2006, 12:36 pm
|
|
I can barely understand what you're trying to say here. Please edit your spelling and grammar, then clarify what you want to do so we understand please.
|
Translation brought to you by GhostAnime:
How do you checked if a person (A) is in a spawn area so that another person (B) won't be spawned in the same location as A. How I am planning to implant this system is that if B asks a NPC to be transported to an arena with someone else, A will be in one half of the field while B is on the otherwisde.... in the same field. Also a way that other people can see them fighting but can't join them. *Note: This may be fairly inaccurate - GhostAnime |
yes this is currect. I just want them not to be able for them not to see the other people. but they are teleported to the same area to fight.
|
you can give the npc a variable so he can only fight one dude at a time:
mob var fighting = 0 NPC icon = 'who_gives_a_shit.dmi' verb fight() set src in view(1) if(src.fighting == 1) usr << "He's fighting already!" else usr.loc = locate(9999,9999,9999) src.fighting = 1 this could work, unless you want multiple people to fight him at once... then you could use the variable to determine which fighter are you (ex. third person to fight him) then trasport that guy accordingly (although this would eat up alot of map) P.S. remember to reset the NPC's fighting variable to 0 after the fight!!! |