• 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 scroll click on it and learn spell

tim26

Member
Joined
Aug 12, 2008
Messages
618
Reaction score
11
Location
Poland
function onUse(cid, item, fromPosition, itemEx, toPosition)

Code:
local spells = {
		{{1,5},{"winter ue"}},
		{{2,6},{"paralyze ue"}},
		{{3,7},{"divine mass"}},
		{{4,8},{"ue berserk"}}
			}

local voc = getPlayerVocation(cid)
if 8189 == item.itemid then

if isInArray(spells[2][1],voc) == TRUE then
	if getPlayerStorageValue(cid,78786886) < 1 then
		doCreatureSay(cid,spells[2][2][1],TALKTYPE_ORANGE_1)
		doTransformItem(item.uid,5756)
	doPlayerLearnInstantSpell(cid,"paralyzeue")
end

	end
elseif voc < 1 or voc > 8 then
	doPlayerSendCancel(cid,"You can't learn this spell.")
end
end

return TRUE
end

first to one vocation to test but it don't work when i click on it nothing happend;/ alpha 4
 
Last edited:
no function included jaja.why have doPlayerLearnInstantSpell(cid,"paralyzeue") ??

eeh you spam much threads that you go script but this script is buggy=(
I think you should post some more scripts before you say you script for money, that way people know that you can do that kind of things:)
 
ye but i write i prefer npc's scripts but if if whos wana then i say i can't do it or no, in actions tables etc i learn now;)

Nevermind i fixed it threat to closed;)
 
Back
Top