• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Spell

bomba

Member
Joined
Feb 26, 2008
Messages
635
Reaction score
7
Location
Brazil
My script don't are working:
Code:
 local combat = createCombatObject()
	   setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_EARTHDAMAGE)
	   setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_PLANTATTACK)
	   setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -1.3, -30, -1.6, 0)
 local area = createCombatArea(AREA_CROSS6X6)

function onSay(cid, words, param)
 local config =
{
   lossMana = 770,
   needPremium = TRUE,
   needLevel = 55,
   spellWords = "exevo gran mas tera"
}
	if doPlayerAddMana(cid, -config.lossMana) == TRUE then
	if getPlayerLevel(cid) < config.needLevel then
	if isPremium == config.needPremium then
	if isDruid == TRUE then
	   doCreatureSay(cid, config.spellWords, TALKTYPE_SAY)
	   setCombatArea(combat, area)
    else
	   doPlayerSendDefaultCancel(cid, "You don\'t have the required vocation")
end
    else
	   doPlayerSendDefaultCancel(cid, "You aren't a premium account")
end
    else
	   doPlayerSendDefaultCancel(cid, "You need level "..needLevel.." for cast spell")
end
    else
	   doPlayerSendDefaultCancel(cid, "You don't have mana")
 end
 return doCombat(cid, combat, var)
end

Code:
	   <talkaction words="/won" script="wrath_of_nature.lua"/>
I want the spell for talkaction... please help-me!
 
Last edited:

Similar threads

Back
Top