Kramer infernal
I work alone =/
- Joined
- Jun 18, 2008
- Messages
- 225
- Reaction score
- 0
Hi, I'm tired of dealing with this invincible and invisible error, so i'll post it here.
Here is the deal, my server has some kind of quest that is very similar to killing in the name of, but a lot, and A LOT more content inside of him.
Before 0.3.6pl1 I had all my script available and working at 100%, but now, it seems some function has deprecated or something the point is that the task mission don't count me the frags of kills and consequently i cannot advance the quest. Here's my script
in creaturescripts:
And in the action part
The script won't run changing anything. Thanks for the help
Here is the deal, my server has some kind of quest that is very similar to killing in the name of, but a lot, and A LOT more content inside of him.
Before 0.3.6pl1 I had all my script available and working at 100%, but now, it seems some function has deprecated or something the point is that the task mission don't count me the frags of kills and consequently i cannot advance the quest. Here's my script
in creaturescripts:
Code:
function onKill(cid, target, lastHit)
local onkilling = getPlayerStorageValue(cid,50000)
local onkilling2 = getPlayerStorageValue(cid,50001)
local onkilling3 = getPlayerStorageValue(cid,50002)
local onkilling4 = getPlayerStorageValue(cid,50003)
local onkilling5 = getPlayerStorageValue(cid,50004)
if getPlayerStorageValue(cid,5000) == 2 then
if(getCreatureName(target) == "Rotworm") then
doPlayerSendTextMessage(cid,19,'It is your monster number ' ..onkilling.. '.')
setPlayerStorageValue(cid,50000, ((onkilling == -1 and 1) or onkilling+1))
if (onkilling >= 20) then
setPlayerStorageValue(cid,5000,3)
setPlayerStorageValue(cid,50000, 1)
doPlayerSendTextMessage(cid,22,'you success!.')
end
end
end
return true
end
And in the action part
Code:
[B]...[/B]
elseif level >= 8 and storage == 1 then
doPlayerSendTextMessage(cid,22,'Alright, for your first mission kill 20 rotworms.')
setPlayerStorageValue(cid,5000,2)
elseif storage == 2 then
doPlayerSendTextMessage(cid,22,'You have killed ' ..based.. '/20 Rotworms!') ...
The script won't run changing anything. Thanks for the help
Last edited: