Wifebeater
New Member
- Joined
- Feb 24, 2011
- Messages
- 60
- Reaction score
- 1
hey, i cant change the first items. I have gesior 8.54 and i tried to change the Samples, but when i relog with a sample the items doesnt save the sample just gets resetted to the old items.
I have a XML file in Myserver/mods/firstitems.xml
Looks like this
I tried to change here, but when i changed, the server did not start because of some microsoft visual something..
Anyone got any idea how i can change first items? Help please.
I have a XML file in Myserver/mods/firstitems.xml
Looks like this
Code:
<?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 = {2050, 2382}
}
]]></config>
<event type="login" name="FirstItems" event="script"><![CDATA[
domodlib('firstitems_config')
function onLogin(cid)
if(getPlayerStorageValue(cid, config.storage) > 0) then
return true
end
for _, id in ipairs(config.items) do
doPlayerAddItem(cid, id, 1)
end
if(getPlayerSex(cid) == PLAYERSEX_FEMALE) then
doPlayerAddItem(cid, 2651, 1)
else
doPlayerAddItem(cid, 2650, 1)
end
doAddContainerItem(doPlayerAddItem(cid, 1987, 1), 2674, 1)
setPlayerStorageValue(cid, config.storage, 1)
return true
end
]]></event>
</mod>
I tried to change here, but when i changed, the server did not start because of some microsoft visual something..
Anyone got any idea how i can change first items? Help please.