script help (for event)

Join Discord

Lomcnviewer

Banned
Banned
Veteran
May 3, 2010
406
8
44
If a player clicks a npc it will record there name in a .txt document...
at the end of the event if one one team wins then the .txt document of winners will (recall to winner room)
the .txt document of other team with loosers will be @tinged...
any help/ suggestions pls?
 

JealY

LOMCN VIP
VIP
Nov 28, 2004
5,354
52
305
England
Could do this but every member of the "team" will have to click the NPC to get their result.

If a player clicks a npc it will record there name in a .txt document...
When the player joins the event;
Code:
ACT
@addnamelist currenteventplayers.txt


at the end of the event if one one team wins then the .txt document of winners will (recall to winner room)
When the event is over, players click NPC to see if they won or lost (this is determined somewhere in the NPC / event) and do the outcome;
Code:
[@Result]
#IF
Checknamelist wonevent.txt
#ACT
mapmove winnermap 100:100
#ELSEACT
mapmove BichonWall (or whatever).

Your actual event NPC will have to be scripted to accommodate these though.
 
Upvote 0

Lomcnviewer

Banned
Banned
Veteran
May 3, 2010
406
8
44
Could do this but every member of the "team" will have to click the NPC to get their result.


When the player joins the event;
Code:
ACT
@addnamelist currenteventplayers.txt



When the event is over, players click NPC to see if they won or lost (this is determined somewhere in the NPC / event) and do the outcome;
Code:
[@Result]
#IF
Checknamelist wonevent.txt
#ACT
mapmove winnermap 100:100
#ELSEACT
mapmove BichonWall (or whatever).

Your actual event NPC will have to be scripted to accommodate these though.
---Sorry for double post ---

where do i place the playersnames.txt who enter event?
where do i put the wonevent.txt and does it automatically transfer winning team into the wonevent.txt then wipe the names for next time event is on?
 
Upvote 0

JealY

LOMCN VIP
VIP
Nov 28, 2004
5,354
52
305
England
---Sorry for double post ---

where do i place the playersnames.txt who enter event?
where do i put the wonevent.txt and does it automatically transfer winning team into the wonevent.txt then wipe the names for next time event is on?

Well when people use your NPC to enter the event, make it so it adds them to the namelist.

Also you can use CLEARNAMELIST at the end of the event script (when the event is over).
 
Upvote 0