Advertisement
Guest User

Untitled

a guest
Jul 3rd, 2015
225
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. function onMobRoam(mob)
  2. local wait = mob:getLocalVar("wait");
  3. local ready = mob:getLocalVar("ready");
  4. print("varw %u",wait)
  5. if (ready == 0 and wait > 40) then local baseID = 17022980
  6. mob:setLocalVar("ready", bit.band(baseID, 0xFFF));
  7. mob:setLocalVar("wait", 0);
  8. elseif (ready > 0) then mob:addEnmity(GetMobByID(ready + bit.lshift(mob:getZoneID(), 12) + 0x1000000),0,1);
  9. else
  10. mob:setLocalVar("wait", wait+3);
  11. end
  12. end;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement