Advertisement
Guest User

Untitled

a guest
Jul 20th, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 1.22 KB | None | 0 0
  1. <?xml version="1.0" encoding="ISO-8859-1"?>
  2. <npc name="Staminer" floorchange="0" speed="0" walkinterval="4000">
  3. <health now="150" max="150"/>
  4. <look type="225" head="20" body="120" legs="75" feet="13"/>
  5.  
  6. <interaction range="3" idletime="30">
  7. <interact keywords="hi" focus="1">
  8. <keywords>hello</keywords>
  9. <response>
  10. <action name="script">
  11. <![CDATA[
  12. selfSay("Olá " .. getCreatureName(cid) .. ", eu vendo {stamina}.", cid)
  13. ]]>
  14. </action>
  15. </response>
  16. </interact>
  17.  
  18. <interact keywords="bye" focus="0">
  19. <keywords>farewell</keywords>
  20. <response text="Good bye."/>
  21. </interact>
  22.  
  23. <interact keywords="stamina">
  24. <response>
  25. <action name="script">
  26. <![CDATA[
  27. selfSay("Você quer regenerar sua stamina?", cid)
  28. ]]>
  29. </action>
  30. <interact keywords="yes">
  31. <response>
  32. <action name="script">
  33. <![CDATA[
  34. local minutes = 42 * 60 * 1000
  35. local price = 100
  36. if doPlayerRemoveMoney(cid, price) then
  37. doPlayerSetStamina(cid, minutes)
  38. selfSay("Thanks.", cid)
  39. else
  40. selfSay("Você não possui "..price.." gold.", cid)
  41. end
  42. ]]>
  43. </action>
  44. </response>
  45. </interact>
  46. <interact keywords="no">
  47. <response>
  48. <action name="script">
  49. <![CDATA[
  50. selfSay("Ok.", cid)
  51. ]]>
  52. </action>
  53. </response>
  54. </interact>
  55. </response>
  56. </interact>
  57. </interaction>
  58. </npc>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement