Guest User

Untitled

a guest
Jan 20th, 2019
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.71 KB | None | 0 0
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <mod name="First Items" version="1.0" author="Kaiser" contact="marranas6@gmail.com" enabled="yes">
  3. <description><![CDATA[
  4. Custom Fist Items
  5. ]]></description>
  6. <config name="firstitems_config"><![CDATA[
  7. config = {
  8. storage = 40046,
  9. items = {}
  10. }
  11. ]]></config>
  12. <event type="login" name="FirstItems" event="buffer"><![CDATA[
  13. domodlib('firstitems_config')
  14. if(getPlayerStorageValue(cid, config.storage) > 0) then
  15. return
  16. end
  17.  
  18. for _, id in ipairs(config.items) do
  19. doPlayerAddItem(cid, id, 1)
  20. end
  21.  
  22. -- All Vocation
  23. -- BackPack -- Rope -- in Backpack
  24. doAddContainerItem(doPlayerAddItem(cid, 1988, 1), 2120, 1)
  25. -- Brass Armor -- Body
  26. doPlayerAddItem(cid, 2465, 1)
  27. -- Steel Helmet -- Head
  28. doPlayerAddItem(cid, 2457, 1)
  29. -- Bonelord Shield -- Right Hand
  30. doPlayerAddItem(cid, 2518, 1)
  31.  
  32. -- Sorcerer (Weapon) -- Hand
  33. if isSorcerer(cid) then
  34. doPlayerAddItem(cid, 2190, 1) -- Wand of Vortex -- Left Hand
  35. doPlayerSendTextMessage(cid, MESSAGE_EVENT_DEFAULT," "..getPlayerName(cid).." now have the first items of "..getPlayerVocationName(cid)..".")
  36.  
  37. -- Druid (Weapon) -- Hand
  38. elseif isDruid(cid) then
  39. doPlayerAddItem(cid, 2182, 1) -- Snake Bite Rod -- Left Hand
  40. doPlayerSendTextMessage(cid, MESSAGE_EVENT_DEFAULT," "..getPlayerName(cid).." now have the first items of "..getPlayerVocationName(cid)..".")
  41.  
  42. -- Paladin - Warrior (Weapon) -- Hand
  43. elseif isPaladin(cid) then
  44. doPlayerAddItem(cid, 2389, 20) -- Spear -- Left Hand
  45. doPlayerSendTextMessage(cid, MESSAGE_EVENT_DEFAULT," "..getPlayerName(cid).." now have the first items of "..getPlayerVocationName(cid)..".")
  46.  
  47. -- Knight (Weapon) -- Hand
  48. elseif isKnight(cid) then
  49. doPlayerAddItem(cid, 8602, 1) -- Jagged Sword -- Left Hand
  50. doPlayerSendTextMessage(cid, MESSAGE_EVENT_DEFAULT," "..getPlayerName(cid).." now have the first items of "..getPlayerVocationName(cid)..".")
  51. end
  52.  
  53. -- All Vocation
  54. -- Brass Legs -- in Feet
  55. doPlayerAddItem(cid, 2478, 1)
  56. -- Leather Boots -- in Boots
  57. doPlayerAddItem(cid, 2643, 1)
  58. -- Scarf -- in Necklacke
  59. doPlayerAddItem(cid, 2661, 1)
  60. -- Crystal coin -- in Arrows
  61. doPlayerAddItem(cid, 2152, 35)
  62. -- Health Potion -- in Backpack
  63. doPlayerAddItem(cid, 7618, 10)
  64. -- Shovel -- in Backpack
  65. doPlayerAddItem(cid, 2554, 1)
  66. -- Crystal Ring -- in Ring
  67. doPlayerAddItem(cid, 2124, 1)
  68. -- Mana Potion -- in Backpack
  69. doPlayerAddItem(cid, 7620, 15)
  70.  
  71. -- Knight (Weapon) -- in Backpack
  72. if isKnight(cid) then
  73. doPlayerAddItem(cid, 8601, 1) -- Steel Axe
  74. doPlayerAddItem(cid, 2439, 1) -- Daramanian mace
  75. end
  76.  
  77. setPlayerStorageValue(cid, config.storage, 1)
  78. ]]></event>
  79. </mod>
Add Comment
Please, Sign In to add comment