Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -----------------------------------
- -- onTrade Action
- -----------------------------------
- function onTrade(player,npc,trade)
- mobspawn = GetMobByID(16921015);
- qm1p = GetServerVariable("[POSI]Fortitude");
- npc = GetNPCByID(16921027);
- -- Trade 12 Ghrah M Chips
- if (GetMobAction(16921015) == 0 and trade:hasItemQty(1872,12) and trade:getItemCount() == 12) then
- player:tradeComplete();
- mobspawn:setSpawn(player:getXPos(),player:getYPos(),player:getZPos());
- SpawnMob(16921015,180):updateEnmity(player);
- SetServerVariable("[POSI]Fortitude", qm1p + 1);
- -- SpawnMob(16921015,180):updateEnmity(player):setPos(npc:getXPos(),npc:getYPos(),npc:getZPos()); -- Spawn Jailer of Fortitude
- --SpawnMob(16921015,180):updateEnmity(player); -- Spawn Jailer of Fortitude
- --local mobpop = GetNPCByID(17535224); -- Spawn ???
- end
- end;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement