Advertisement
Guest User

test

a guest
Mar 3rd, 2015
192
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 0.51 KB | None | 0 0
  1. <!-- action.xml -->
  2. <action fromaid="50099" toaid="50105" event="script" value="orewagon/cart.lua"/>
  3.  
  4. <!-- orewagon.lua -->
  5. local action_id = {
  6.     [50099] = {teleport = {32577, y = 31977, z = 9}},
  7.     [50100] = {},
  8.     [50101] = {},
  9.     [50102] = {},
  10.     [50103] = {},
  11.     [50104] = {},
  12.     [50104] = {},
  13. }
  14.  
  15. function onUse(cid, item, frompos, item2, topos)
  16.    
  17.     local action = action_id[item.aid]
  18.     if action then
  19.         doTeleportThing(cid, action.teleport)
  20.         doSendMagicEffect(topos, 10)
  21.     end
  22.  
  23.     return true
  24. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement