Guest User

Untitled

a guest
Feb 4th, 2012
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.56 KB | None | 0 0
  1.     function doRemoveNpcByName(name) -- Byerne XTibia
  2.         return (isCreature(getCreatureByName(name)) and not isPlayer(getCreatureByName(name))) and doRemoveCreature(getCreatureByName(name)) or false
  3.     end
  4.    
  5.     elseif msgcontains(msg, 'coin') then
  6.         if getPlayerStorageValue(cid, 6007) == -1 then
  7.             doPlayerAddItem(cid,2160,100)
  8.             selfSay('As you wish.', cid)
  9.             doRemoveNpcByName("Shenron")
  10.             setGlobalStorageValue(6010, -1)
  11.             setGlobalStorageValue(1999, -1)
  12.             setPlayerStorageValue(cid, 6007, 1)
  13.         else
  14.             selfSay("I can't do this wish for you.", cid)
  15.         end
Advertisement
Add Comment
Please, Sign In to add comment