AOC_PRC8/_module/nss/ticket_refund.nss
Jaysyn904 5e558169a0 Initial Commit
Initial Commit
2025-04-03 11:24:16 -04:00

35 lines
962 B
Plaintext

void main()
{
object oPC = GetLastUsedBy();
object oMod = GetModule();
int oTicket = GetLocalInt(oPC, "has_ticket");
if (GetLocalInt(oMod, "mod_mode")==1)
{
PlaySound("sim_cntresist");
FloatingTextStringOnCreature
("*** Nice Try ***", oPC);
return;
}
if (oTicket==1)
{
SetLocalInt(oPC, "has_ticket", 0);
CreateItemOnObject("sxillwa", oPC, 1);
CreateItemOnObject("bzedyer", oPC, 1);
CreateItemOnObject("trqcva", oPC, 1);
CreateItemOnObject("fgnpde", oPC, 1);
CreateItemOnObject("qxcove", oPC, 1);
CreateItemOnObject("bsntfn", oPC, 1);
CreateItemOnObject("ahuvpw", oPC, 1);
CreateItemOnObject("arscod", oPC, 1);
CreateItemOnObject("deitzy", oPC, 1);
PlaySound("gui_select");
PlaySound("sce_positive");
FloatingTextStringOnCreature("** Tickets re-issued **", oPC);
}
else
{
PlaySound("sim_cntresist");
FloatingTextStringOnCreature("You already have your arena tickets", oPC);
}
}