GOD Wille
Excellent OT User
What is wrong with this script?
need some help.. it doesn't work.
LUA:
function onSay(cid, words, param)
local summons = getCreatureSummons(cid)
local knight = getPlayerVocation(cid)
if param == "" then
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You must type something first.")
return false
else if summons == 2 then
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You already have" .. getCreatureSummons(cid) .. ".")
if param == "Hercules" and knight == 8 then
doSummonCreature("Hercules", fromPosition.x + 1)
else
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You are not Elite Knight or you got another error please report to gamemaster.")
end
end
end
return true
end
Last edited: