• 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!

Lua Function doPlayerCastSpell(cid, spell)

could someone edit this function for it to be sent by the creature??
maybe a doCreatureCastSpell (cid, spell)²
 
if...
I want to say this
Code:
doPlayerCastSpell(cid, "light")


Instead of this
Code:
doPlayerCastSpell(cid, "utevo lux")

As it should be?
 
if...
I want to say this
Code:
doPlayerCastSpell(cid, "light")


Instead of this
Code:
doPlayerCastSpell(cid, "utevo lux")

As it should be?

No, Becuase this goes after what the player says, Needs to be the spell words that the player says not the spell name.
 
well.. I think yes it could be, to say "light" instead of "utevo lux", but u should "remake" the function in 050-function.lua (I must say i have long time no lua-programming)
the idea is something like this:
Lua:
function doPlayerCastSpellv2(cid, spell) --or whatever u want
	if spell == 'light' then
		doPlayerCastSpell(cid, "utevo lux")
	end
end
 
What i want to make is that the player not says the magic

Code:
player says: utevo lux

for don't say nothing


May understand myself?
 
PHP:
function doPlayerCastSpellv2(cid, spell) --or whatever u want
	if spell == 'light' then
		doPlayerCastSpell(cid, "utevo lux")
		doCreatureSay(cid, "utevo lux")
	end
end

Optional for orange talk type:
PHP:
		doCreatureSay(cid, "utevo lux", TALKTYPE_MONSTER)
 
nonono

i need...
The player DON'T say the magic, but work the magic

use item = use spell and don't say utevo lux/light

May understand myself?
 
@Up
No, this allow or disable showing yellow or orange colors.


You can try set from return true to return false in your spell file.
 
lol. Use this in talkaction as gm and troll people by make then use spell to take skull lmao
 
Back
Top