Renusek
beton beton beton punk!
Hello .
I'm now rewritting my scripts to mod system . And I have few problems . Help plx and fix that...
And my script for naruto server .
What's wrong here?
In first script no errors.
In second one error in line 9 ;/.
I'm now rewritting my scripts to mod system . And I have few problems . Help plx and fix that...
Code:
<?xml version="1.0" encoding="UTF-8"?>
<mod name="Deaths Channel" version="1.0" author="Renusek and Zonet" contact="otland.net" enabled="no">
<description>
This mod will add new channel - Deaths.
It's kind of deathlist. Last deaths on serv.
</description>
<config name="deaths_channel_config"><![CDATA[
config = {
channel = 11
}
]]></config>
<channel id="11" name="Deaths Channel" active="no" enabled="yes"/>
<event type="login" name="Deaths Channel" event="buffer"><![CDATA[
registerCreatureEvent(cid, "PlayerDeath")
]]></event>
<event type="death" name="Deaths Channel" event="buffer"><![CDATA[
domodlib('firstitems_config')
function onDeath(cid, corpse, lastHitKiller, mostDamageKiller)
if isPlayer(lastHitKiller) == TRUE then
doPlayerSendChannelMessage(cid, "Auto Message", ""..getPlayerName(cid).." ["..getPlayerLevel(cid).."] just got killed by "..getPlayerName(lastHitKiller).." ["..getPlayerLevel(lastHitKiller).."] (Player)", TALKTYPE_CHANNEL_O, config.channel)
elseif isMonster(lastHitKiller) == TRUE then
doPlayerSendChannelMessage(cid, "Auto Message", ""..getPlayerName(cid).." ["..getPlayerLevel(cid).."] just got killed by "..getCreatureName(lastHitKiller).." (Monster)", TALKTYPE_CHANNEL_O, config.channel)
else
doPlayerSendChannelMessage(cid, "Auto Message", ""..getPlayerName(cid).." ["..getPlayerLevel(cid).."] just got killed by "..getCreatureName(lastHitKiller).." (?)", TALKTYPE_CHANNEL_O, config.channel)
end
_result = true
end
]]></event>
</mod>
And my script for naruto server .
Code:
<?xml version="1.0" encoding="UTF-8"?>
<mod name="Control Training" version="1.0" author="Renusek" contact="localhost" enabled="yes">
<info>
This mod will enable training chakra control by walking on water.
</info>
<config name="control_config"/><![CDATA[
pPos = getPlayerPosition(cid)
]]></config>
<movement type="StepIn" itemid="4820-4825" event="buffer"><![CDATA[
domodlib(control_config)
function onStepIn(cid, item, position, lastPosition, fromPosition, toPosition, actor)
doSendMagicEffect(pPos, 1)
doPlayerAddSkillTry(cid, 1, 1)
_result = true
end
]]></movement>
</mod>
What's wrong here?
In first script no errors.
In second one error in line 9 ;/.