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

Quest NPC - Kill 10 monster get a item and experience

andii95

New Member
Joined
Aug 21, 2009
Messages
413
Reaction score
2
Location
Sweden
Quest NPC - Kill 10 monster get a item and experience

Hi, i would like to request a Quest NPC which bassicly does this.

Talk to npc and ask about mission and then he tells you what he wants (Kill 10 specific monsters)
After killed the 10 monsters he gives you a item and a small ammount of exp.

This shouldnt be so hard Thanks in advance.
 
So how do you know if its hard or not hard for other people ? Maybe it is hard for them.

Because i know, it might be hard for noobs that calls them self scripters but for ppl like cykotitan etc. its easy... Stop posting at this page, ur just annoying.
 
Because i know, it might be hard for noobs that calls them self scripters but for ppl like cykotitan etc. its easy... Stop posting at this page, ur just annoying.

It's easy for you if you would just use the search function and find that there's like 10 "killing in the name of" threads. First you try to make the script by yourself, then if you don't succeed u ask ^^ This way u will learn the shit much faster.

/If this helps rep me plx =P


Cykotits is monster name.
in creaturescripts/scripts/login.lua before return TRUE:
PHP:
registerCreatureEvent(cid, "cykotits")
in creaturescripts/scripts make
cykotits.lua:
PHP:
local msgType = MESSAGE_STATUS_CONSOLE_ORANGE
function onKill(cid, target, lastHit)
	if(isPlayer(target) ~= TRUE) then
local creature = "Cykotits"
	if getCreatureName(target) == creature then
         if getPlayerStorageValue(cid, 30024) >= 6 then 
		if getPlayerStorageValue(cid, 30024) <= 56 then 
        setPlayerStorageValue(cid, 30024, getPlayerStorageValue(cid, 30024) + 1)
	doPlayerSendTextMessage(cid, msgType, getPlayerStorageValue(cid, 30024)-6 .. " Cykotits defeated. Total [" .. getPlayerStorageValue(cid, 30024)-6 .. "/ 50].")   
	      end
	   end 
	end
		if getPlayerStorageValue(cid, 30024) == 56 then
			doPlayerPopupFYI (cid, "Cykotits defeated,Return to NPC.")
			setPlayerStorageValue(cid, 30024, 57)
		end
	end
return true  
end
in creaturescript.xml:
PHP:
<event type="kill" name="cykotits" event="script" value="cykotits.lua"/>

and in npc script u add this:
PHP:
if msgcontains(msg, "yes") then
if getCreatureStorage(cid, 30024) == 5 then		
setPlayerStorageValue(cid, 30024, 6)
npcHandler:say("Kill 50 Cykotits!", cid,1)
end
if getCreatureStorage(cid, 30024) == 57 then
setPlayerStorageValue(cid, 30024, 58)
npcHandler:say("U has terminated Cykotits w00t?!", cid,1)
end
end
 
Last edited:
It's easy for you if you would just use the search function and find that there's like 10 "killing in the name of" threads. First you try to make the script by yourself, then if you don't succeed u ask ^^ This way u will learn the shit much faster
Lol all serius here and then
/If this helps rep me plx =P
haha xD. And im not a lua scripter as said before, so i dont even have to try script. Cuz i know i cant.

Thanks for the script, but it wasnt really what i was looking for, and i believe its not the whole script. That looks like a event to me and not a npc :P But ill give you rep anyway xD
 
Lol all serius here and then
haha xD. And im not a lua scripter as said before, so i dont even have to try script. Cuz i know i cant.

Thanks for the script, but it wasnt really what i was looking for, and i believe its not the whole script. That looks like a event to me and not a npc :P But ill give you rep anyway xD
No it's all I edited the post =P
The npc u just take some random one and add this in there. =P
 
Back
Top