I have a douth, im working at King of the Hill event. And im stuck at Npc Teleporting when all players die:
When they die at event they go into safe place talk with npc and it should port them back to their event starter location for each condition team number like 3 and 4 (there are 2 teams, each one has his own spawn location), here is the code for that npc:
def onTalk (self,npc,player) :
npcId = npc.getNpcId()
cond = player.getQuestState("eventmanager").getInt("cond")
if npcId == RESPAWN :
if not cond == 3:
self.teleToLocation(144428,161151,-2460)
else:
self.teleToLocation(MNPCX,MNPCY,MNPCZ)
Another one is, whats the code for removing from participation from event, i mean he clicks on a button at message window, and take his registration from event. From the self.team[] list.
You can post now and register later.
If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.
DISCORD :
https://discord.com/users/325653525793210378
utchiha_market
telegram :
https://t.me/utchiha_market
SELLIX STORE :
https://utchihamkt.mysellix.io/
Join our server for more products :
https://discord.gg/uthciha-services
https://campsite.bio/utchihaamkt
A small reminder for everyone browsing here - our bonus-start is active starting from today, you can already play with the new benefits! Have a good time everyone 🙂
Congratulations to the Creative alliance on the first-ever defeat of Frintezza on our server! 🏆 Your teamwork and dedication have earned you a place in history.🎉
Question
DreamStage
I have a douth, im working at King of the Hill event. And im stuck at Npc Teleporting when all players die:
When they die at event they go into safe place talk with npc and it should port them back to their event starter location for each condition team number like 3 and 4 (there are 2 teams, each one has his own spawn location), here is the code for that npc:
Another one is, whats the code for removing from participation from event, i mean he clicks on a button at message window, and take his registration from event. From the self.team[] list.
0 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.