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

Great Spirit Potion

MrJunior

New Member
Joined
May 16, 2020
Messages
6
Reaction score
1
local strongEmptyPot = 7634

function onUse(cid, item, frompos, item2, topos)
mag = getPlayerMagLevel(cid)
if getPlayerLevel(cid) < 50 then
doSendMagicEffect(frompos,2)
doPlayerSendCancel(cid,"This potion can only be consumed by paladins, druids and sorcerers of level 50 or higher.")
return 1
end
if getPlayerVocation(cid) == 3 or getPlayerVocation(cid) == 7 or getPlayerVocation(cid) == 1 or getPlayerVocation(cid) == 2 or getPlayerVocation(cid) == 5 or getPlayerVocation(cid) == 6 then
doSendAnimatedText(getPlayerPosition(cid), "Aaaah...", TEXTCOLOR_ORANGE)
if(doTargetCombatMana(0, cid, 300, 700, CONST_ME_MAGIC_BLUE) == LUA_ERROR) then
return FALSE
end
doTransformItem(item.uid, strongEmptyPot)
else
doSendMagicEffect(frompos,2)
doPlayerSendCancel(cid,"This potion can only be consumed by sorcerers, paladins and druids of level 50 or higher.")
end
return 1
end
 
Solution
Well, first of all, could you make a better thread so people could understand you?
Second thing would be great if you did give some information about your TFS etc...

Even better put this code in a code bracket, the one you see in tools when you do a "thread/reply" or what they called.

But i would guess just add
Lua:
doTargetCombatHealth

so something with

Lua:
if(doTargetCombatHealth(0, cid, COMBAT_HEALING, 300, 500, CONST_ME_MAGIC_BLUE) == LUA_ERROR) then
Well, first of all, could you make a better thread so people could understand you?
Second thing would be great if you did give some information about your TFS etc...

Even better put this code in a code bracket, the one you see in tools when you do a "thread/reply" or what they called.

But i would guess just add
Lua:
doTargetCombatHealth

so something with

Lua:
if(doTargetCombatHealth(0, cid, COMBAT_HEALING, 300, 500, CONST_ME_MAGIC_BLUE) == LUA_ERROR) then
 
Solution
Im tryb this but plz copy my all script and pastę your proposition to place. Because im try editing my script on many ways after a space, in a new line, everywhere and always detects an error
Post automatically merged:

Im use Evo sentil 2009 and mega Evo 8.10
Post automatically merged:

Im this style???

local strongEmptyPot = 7634

function onUse(cid, item, frompos, item2, topos)
mag = getPlayerMagLevel(cid)
if getPlayerLevel(cid) < 50 then
doSendMagicEffect(frompos,2)
doPlayerSendCancel(cid,"This potion can only be consumed by paladins, druids and sorcerers of level 50 or higher.")
return 1
end
if getPlayerVocation(cid) == 3 or getPlayerVocation(cid) == 7 or getPlayerVocation(cid) == 1 or getPlayerVocation(cid) == 2 or getPlayerVocation(cid) == 5 or getPlayerVocation(cid) == 6 then
doSendAnimatedText(getPlayerPosition(cid), "Aaaah...", TEXTCOLOR_ORANGE)
if(doTargetCombatMana(0, cid, 300, 700, CONST_ME_MAGIC_BLUE) == LUA_ERROR) then or if(doTargetCombatHealth(0, cid, COMBAT_HEALING, 300, 500, CONST_ME_MAGIC_BLUE) == LUA_ERROR) then
return FALSE
end
doTransformItem(item.uid, strongEmptyPot)
else
doSendMagicEffect(frompos,2)
doPlayerSendCancel(cid,"This potion can only be consumed by sorcerers, paladins and druids of level 50 or higher.")
end
return 1
end
Post automatically merged:

Or im this style???? How??? Copy all my script and pastę on correct place

Local strongEmptyPot = 7634

function onUse(cid, item, frompos, item2, topos)
mag = getPlayerMagLevel(cid)
if getPlayerLevel(cid) < 50 then
doSendMagicEffect(frompos,2)
doPlayerSendCancel(cid,"This potion can only be consumed by paladins, druids and sorcerers of level 50 or higher.")
return 1
end
if getPlayerVocation(cid) == 3 or getPlayerVocation(cid) == 7 or getPlayerVocation(cid) == 1 or getPlayerVocation(cid) == 2 or getPlayerVocation(cid) == 5 or getPlayerVocation(cid) == 6 then
doSendAnimatedText(getPlayerPosition(cid), "Aaaah...", TEXTCOLOR_ORANGE)
if(doTargetCombatMana(0, cid, 300, 700, CONST_ME_MAGIC_BLUE) == LUA_ERROR) then
return FALSE
else
if(doTargetCombatHealth(0, cid, COMBAT_HEALING, 300, 500, CONST_ME_MAGIC_BLUE) == LUA_ERROR) then
end
doTransformItem(item.uid, strongEmptyPot)
else
doSendMagicEffect(frompos,2)
doPlayerSendCancel(cid,"This potion can only be consumed by sorcerers, paladins and druids of level 50 or higher.")
end
return 1
end
Post automatically merged:

All times is bad plz copy all script and paste in correct place im looking this script about 5 years
Post automatically merged:

How to paste it to correct place?????????? Where? space? or, ???Where? PLZ help
 
Last edited:
plz delete this subject if not correct i have only problem I have been looking for 6 years, please help only.
Read the sticky threads like this and correct your posts, instead of making multiple threads of the same thing.
 
Back
Top