purplerain
New Member
- Joined
- Jun 8, 2011
- Messages
- 13
- Reaction score
- 0
I need a script cuz i cant get enything to work with this server!!
I want
Sorc to start with Chainset Leatherboots WAND wooden shield backpack with rope and shovel in it
DRUID to start with Chainset Leatherboots ROD wooden shield backpack with rope and shovel in it
PALA to start with Chainset Leatherboots SPEAR wooden shield backpack with rope and shovel in it
KNIGHT to start with Chainset Leatherboots Club sword axe wooden shield backpack with rope and shovel in it
This is how it looks now!
<?xml version="1.0" encoding="UTF-8"?>
<mod name="First Items" version="1.0" author="The Forgotten Server" contact="otland.net" enabled="yes">
<config name="firstitems_config"><![CDATA[
config = {
storage = 30001,
items = {2512, 2672, 2458, 2648, 2643}
}
]]></config>
<event type="login" name="FirstItems" event="buffer"><![CDATA[
domodlib('firstitems_config')
if(getPlayerStorageValue(cid, config.storage) > 0) then
return
end
for _, id in ipairs(config.items) do
doPlayerAddItem(cid, id, 1)
end
if(getPlayerSex(cid) == PLAYERSEX_FEMALE) then
doPlayerAddItem(cid, 2464, 1)
else
doPlayerAddItem(cid, 2464, 1)
end
doAddContainerItem(doPlayerAddItem(cid, 1988, 1), 2298, 100)
setPlayerStorageValue(cid, config.storage, 1)
]]></event>
</mod>
Can someone please help me whatever i edit it comes and error!
Tryed to search but none of the firstitems i find is for forgotten server 8.6
I want
Sorc to start with Chainset Leatherboots WAND wooden shield backpack with rope and shovel in it
DRUID to start with Chainset Leatherboots ROD wooden shield backpack with rope and shovel in it
PALA to start with Chainset Leatherboots SPEAR wooden shield backpack with rope and shovel in it
KNIGHT to start with Chainset Leatherboots Club sword axe wooden shield backpack with rope and shovel in it
This is how it looks now!
<?xml version="1.0" encoding="UTF-8"?>
<mod name="First Items" version="1.0" author="The Forgotten Server" contact="otland.net" enabled="yes">
<config name="firstitems_config"><![CDATA[
config = {
storage = 30001,
items = {2512, 2672, 2458, 2648, 2643}
}
]]></config>
<event type="login" name="FirstItems" event="buffer"><![CDATA[
domodlib('firstitems_config')
if(getPlayerStorageValue(cid, config.storage) > 0) then
return
end
for _, id in ipairs(config.items) do
doPlayerAddItem(cid, id, 1)
end
if(getPlayerSex(cid) == PLAYERSEX_FEMALE) then
doPlayerAddItem(cid, 2464, 1)
else
doPlayerAddItem(cid, 2464, 1)
end
doAddContainerItem(doPlayerAddItem(cid, 1988, 1), 2298, 100)
setPlayerStorageValue(cid, config.storage, 1)
]]></event>
</mod>
Can someone please help me whatever i edit it comes and error!
Tryed to search but none of the firstitems i find is for forgotten server 8.6