• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

mods folder

Spo teh pro

New Member
Joined
Jan 3, 2008
Messages
319
Reaction score
1
Hello. I'm using talaturens the forgotten server (mystic spirit 0.2.10) and I wanted to creat the spell "Vengeance" by following Nandonalt's tutorial (credits to him for the spell) but I don't have one and now I don't know what to do

Here is the code and the things he wrote I have to add

"Let's go then! Create a file named vengeance.xml in your mods folder and paste this:

Code:
PHP Code:
<?xml version="1.0" encoding="UTF-8"?>
<mod name="Vengeance" version="1.0" author="Nandonalt" contact="[email protected]" enabled="yes">
<config name="vengeconf"><![CDATA[
        config = {  
                              storage = 4328,
                              time = 15,
                              percent_min = 20,
                              percent_max = 30,
                              manaused = 800                              
                              
        }
    ]]></config>
    <event type="statschange" name="VengeanceV" event="script"><![CDATA[
                            
function onStatsChange(cid, attacker, type, combat, value)
    domodlib('vengeconf')
if type == STATSCHANGE_HEALTHLOSS and value >= 1 then
local percentage = math.random(config.percent_min, config.percent_max)   
local formula = math.floor((percentage * value) / 100)   
 
 if getPlayerStorageValue(cid,config.storage) == 1 and isCreature(attacker) then
  doSendAnimatedText(getCreaturePosition(attacker),"-"..formula,COLOR_RED)
  doCreatureSay(cid,"Taste Vengeance!",19)
  doSendMagicEffect(getCreaturePosition(cid),17)
  doSendMagicEffect(getCreaturePosition(attacker),29)
  doCreatureAddHealth(attacker,-formula)
    end
  end
  return 1
  end
                        
    ]]></event>
    
<event type="login" name="VengeanceLogin" event="script"><![CDATA[                                                            
                                function onLogin(cid)
                                
                registerCreatureEvent(cid,"VengeanceV")
                local storage = 4328
if getPlayerStorageValue(cid,storage) == 1 then
 doPlayerSendCancel(cid,"Vengeance effect ended.")
  setPlayerStorageValue(cid,storage,-1) 
  doSendMagicEffect(getCreaturePosition(cid),17)
  else
  end
  return 1
  end
    ]]></event>    
<instant name="Vengeance" words="vengeance" lvl="85" mana="800" exhaustion="10000" needlearn="0" event="script" ><![CDATA[
domodlib('vengeconf')
local secs = config.time * 1000
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_EFFECT, 17)


function no_vengeance(param)
domodlib('vengeconf')
pid = getPlayerByNameWildcard(param.name)
    if(not pid or (isPlayerGhost(pid) and getPlayerGhostAccess(pid) > getPlayerGhostAccess(cid))) then
           else
  doPlayerSendCancel(pid,"Vengeance effect ended.")
  setPlayerStorageValue(pid,config.storage,-1) 
        doSendMagicEffect(getCreaturePosition(pid),17)
     end
     return 1
     end
     
function onCastSpell(cid, var)
domodlib('vengeconf')
if getPlayerStorageValue(cid,config.storage) == -1 then
    doCreatureSay(cid,"Vengeance!",19)
  setPlayerStorageValue(cid,config.storage,1) 
  addEvent(no_vengeance,secs,{cid = cid, name = getPlayerName(cid)})
doCombat(cid, combat, var)
  else
  doPlayerSendCancel(cid,"This spell is already active.")
doPlayerAddMana(cid,config.manaused)
  end
return 1
end
    ]]>
</instant></mod>

Anyone help me please? :)
I also rep
Thanks in advance
 
Hello. I'm using talaturens the forgotten server (mystic spirit 0.2.10) and I wanted to creat the spell "Vengeance" by following Nandonalt's tutorial (credits to him for the spell) but I don't have one and now I don't know what to do

Here is the code and the things he wrote I have to add

"Let's go then! Create a file named vengeance.xml in your mods folder and paste this:

Code:
PHP Code:
<?xml version="1.0" encoding="UTF-8"?>
<mod name="Vengeance" version="1.0" author="Nandonalt" contact="[email protected]" enabled="yes">
<config name="vengeconf"><=!=[=C=D=A=T=A=[
        config = {  
                              storage = 4328,
                              time = 15,
                              percent_min = 20,
                              percent_max = 30,
                              manaused = 800                              
                              
        }
    ]=]=></config>
    <event type="statschange" name="VengeanceV" event="script"><=!=[=C=D=A=T=A=[
                            
function onStatsChange(cid, attacker, type, combat, value)
    domodlib('vengeconf')
if type == STATSCHANGE_HEALTHLOSS and value >= 1 then
local percentage = math.random(config.percent_min, config.percent_max)   
local formula = math.floor((percentage * value) / 100)   
 
 if getPlayerStorageValue(cid,config.storage) == 1 and isCreature(attacker) then
  doSendAnimatedText(getCreaturePosition(attacker),"-"..formula,COLOR_RED)
  doCreatureSay(cid,"Taste Vengeance!",19)
  doSendMagicEffect(getCreaturePosition(cid),17)
  doSendMagicEffect(getCreaturePosition(attacker),29)
  doCreatureAddHealth(attacker,-formula)
    end
  end
  return 1
  end
                        
    ]=]=></event>
    
<event type="login" name="VengeanceLogin" event="script"><=!=[=C=D=A=T=A=[                                                            
                                function onLogin(cid)
                                
                registerCreatureEvent(cid,"VengeanceV")
                local storage = 4328
if getPlayerStorageValue(cid,storage) == 1 then
 doPlayerSendCancel(cid,"Vengeance effect ended.")
  setPlayerStorageValue(cid,storage,-1) 
  doSendMagicEffect(getCreaturePosition(cid),17)
  else
  end
  return 1
  end
    ]=]=></event>    
<instant name="Vengeance" words="vengeance" lvl="85" mana="800" exhaustion="10000" needlearn="0" event="script" ><=!=[=C=D=A=T=A=[
domodlib('vengeconf')
local secs = config.time * 1000
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_EFFECT, 17)


function no_vengeance(param)
domodlib('vengeconf')
pid = getPlayerByNameWildcard(param.name)
    if(not pid or (isPlayerGhost(pid) and getPlayerGhostAccess(pid) > getPlayerGhostAccess(cid))) then
           else
  doPlayerSendCancel(pid,"Vengeance effect ended.")
  setPlayerStorageValue(pid,config.storage,-1) 
        doSendMagicEffect(getCreaturePosition(pid),17)
     end
     return 1
     end
     
function onCastSpell(cid, var)
domodlib('vengeconf')
if getPlayerStorageValue(cid,config.storage) == -1 then
    doCreatureSay(cid,"Vengeance!",19)
  setPlayerStorageValue(cid,config.storage,1) 
  addEvent(no_vengeance,secs,{cid = cid, name = getPlayerName(cid)})
doCombat(cid, combat, var)
  else
  doPlayerSendCancel(cid,"This spell is already active.")
doPlayerAddMana(cid,config.manaused)
  end
return 1
end
    ]=]=>
</instant></mod>

Anyone help me please? :)
I also rep
Thanks in advance

IIRC, mods were implemented in 0.3+
 
Okay thanks +rep
One more question. Which server should I use then?
I want a 8.6 or 8.7 server which is stable with mods then.. I have 8.54 crying damson 0.3.4 I think atm
 
you need 0.4 if you want a server that has mods and is 8.6 or 8.7. unless you change the sources on 0.3.6pl1 yourself.
 
Its not that hard to update 0.3.6 to 8.54, the tutorial should get you ready

no

>0.3.6 to 8.54
trollface.jpg
 
I'm using crying damson 0.3.6, sorry, with 8.54 version

But I want to use a server with 8.6 or 8.7, because my mapper is mapping with 8.6 mapeditor and I'd like to stack the runes because I don't like that the 100x runes weight so less with older clients
My server is not online yet but we are working really long already xD
Will be custom server with a great map + oldschool damage with few not overpowered spells and more balanced vocations and most important - no donations xD
 
I'm using crying damson 0.3.6, sorry, with 8.54 version

But I want to use a server with 8.6 or 8.7, because my mapper is mapping with 8.6 mapeditor and I'd like to stack the runes because I don't like that the 100x runes weight so less with older clients
My server is not online yet but we are working really long already xD
Will be custom server with a great map + oldschool damage with few not overpowered spells and more balanced vocations and most important - no donations xD

if you're really lazy, and got 9 USD, buy premium at OTLand and download a 8.6 server.
if you're not lazy or got no money...
http://otland.net/f481/how-make-your-server-client-8-61-tutorial-90537/
 
I've got the money just no paypal shit etc.
That's the problem
I tried your tutorial but i just dont get that, thanks anyways :)

I think I'll give the cash to a friend and he will buy it for me then
Can I convert all my datas from 0.3.6 to 0.4 without problems?
like spells, actions etc.

Thanks for your help :)
 
Back
Top