Jump to content
Sign in to follow this  
birender

[Help] Take Function In Quest Is Not Working

Recommended Posts

Hi everyone,I can speak only English here.Hope anyone can translate this.Well I have problem with quests mainly with take function.For example i attached a quest That is when stones.quest with say "20093.take begin " the quest runs successfully and it is there in Object folder Share->Locale->Germany->Quest->Object->20093->take->pietre.startBut NPC 20093 is not accepting any item .take is not working.. No syserr in client or Server side.. NPC not talking when i drag any weapon or armor with socket stones..It happens for deviltower.quest ancient seal 20073 not accept 50084 key (.take function not working.)and many quest with .take Find me a solution for this.. Thanks in Advance

Please login or register to see this attachment.

Please login or register to see this link.

Share this post


Link to post
Share on other sites

Hello.

 

I tested your quest here and works liked a charm :/

 

Can you confirm if you have this in your game source or if its different?

 

quest.h

 

QUEST_ITEM_TAKE_EVENT,

 

questmanager.h

 

bool TakeItem(unsigned int pc, unsigned int npc, LPITEM item);

 

questnpc.cpp

 

bool NPC::OnTakeItem(PC& pc)

{

return HandleEvent(pc, QUEST_ITEM_TAKE_EVENT);

}

 

questnpc.h

 

bool OnTakeItem(PC& pc);

 

questmanager.cpp

Please login or register to see this code.

Share this post


Link to post
Share on other sites

Thanks dude for reply

and here is it

everything is same and its there

 

questmanager.cpp

Please login or register to see this code.

Please login or register to see this code.

questmanager.h

 

 

Please login or register to see this code.

 

 

 

quest.h

Please login or register to see this code.

 

 

questnpc.cpp

Please login or register to see this code.

 

questnpc.h

 

 

 

Please login or register to see this code.

 

 

as i pasted here

 

Anything wrong with quest functions?

 

can u give me your skype so I can add you and show directly Please login or register to see this image. /uploads/emoticons/xenforo-smilies-sprite.png.274688e589d11cf51879e1b36985bd7d.png" alt=":)">

Share this post


Link to post
Share on other sites

Could be, left home already so cant check with mine. Can you try with test_server:1 and see if it points out the issue?

Share this post


Link to post
Share on other sites

At your channels cores CONFIG, add this line:

 

TEST_SERVER: 1

 

 

It wil create a new .txt next to your config (dev_log.txt is i remember correctly).

 

After it try to drag the item to the npc and post here that file

Share this post


Link to post
Share on other sites

Well the thing is my source dont have test_server..

Even though i added in my Config its not generating any txt (dev_log.txt or something)

when i drag the item to npc

 

and i just want to say fisher man when i drag fishing pole he is able to take it..

 

 

when 9009.take with item.vnum >= 27400 and item.vnum < 27590 and item.get_socket(0)!= item.get_value(2) begin

say_title("Fisherman:")

say("")

say("The level of this Fishing Rod is too low.")

say("")

say("I cannot upgrade it yet.")

say("")

end

This is working

and he says this message

 

But

When i drag 50084-Unlock key at 20073-Ancient seal at 5th floor of Demon Tower its not working no error

 

 

 

 

when devil_stone5.take with item.vnum == 50084 begin

npc.purge()

item.remove()

d.setf("stone_count", d.getf("stone_count") - 1)

if d.getf("stone_count") <= 0 then

d.clear_regen()

d.kill_all()

nothing works

 

and also that stone remove quest... i dont know what is weird in it...

Share this post


Link to post
Share on other sites

Make sure your devil_stone5 matches with 20073 (quest/questnpc.txt).

Share this post


Link to post
Share on other sites

ye its there in quest npc

 

questnpc.txt

 

 

 

493 heukpung_gupae

1092 devil_stone6

20073 devil_stone5

504 orangkae_jangsu

635 jinunggwi_janggun

1091 devil_stone3

1302 greenfrog_general

2004 jipgae_geomi

2104 jeongal_ingan

8015 devil_stone1

 

its not with quest npc

check that stones.quest it has only 20093.take its normal vnum it must work right? its not :S

Share this post


Link to post
Share on other sites

Hello again, the correct file name is:

 

DEV_LOG.log

 

it will appear when you add the line below to your config file:

 

TEST_SERVER: 1

 

 

Put it here with also your syslog and syserr pls

Share this post


Link to post
Share on other sites

I successfully started game in test server mode and gave the NPC socketed sword so that he can remove the stone but he didn't accept the sword and there is no file generated "DEV_LOG.log" or DEV_LOG.txt

 

syerr is empty and on syslog I get this message

 

SpawnMob: cannot create monster at non-exist sectree 768897 x 707111 (map 251)

CHARACTER COUNT vid 28679 pid 1

 

I dont think the above error is related to my question.

Any good idea you have to deal with this issue

Share this post


Link to post
Share on other sites

This is the query for insert statement

 

INSERT INTO `player`.`mob_proto` VALUES ('20073', '???', 'Ancient Seal', '5', '1', '0', '1', '', 'NOMOVE', '0', '', 'STUN,SLOW,CURSE,TERROR', '0', '', '2', '0', '0', '0', '0', '0', '0', '120', '3', '1', '0', '0', '10', '4', '100', '100', '0', '2000', '150', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', NULL, '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0');

 

INSERT INTO `player`.`mob_proto` VALUES ('20093', '??? ??', 'Koe-Pung', '5', '1', '0', '1', '', 'NOMOVE', '0', '', 'STUN,SLOW,CURSE,TERROR', '0', '', '1', '0', '0', '0', '0', '0', '0', '120', '3', '1', '0', '0', '10', '4', '100', '100', '0', '2000', '150', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', NULL, '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0');

Share this post


Link to post
Share on other sites

Try to delete the object folder and then compiling only the devil's dungeon quest.

Share this post


Link to post
Share on other sites
Please login or register to see this quote.

Thanks for suggestion.. but tried that too..

take function not working no error...

Share this post


Link to post
Share on other sites
Sign in to follow this  

×

Important Information

By using this site, you agree to our Terms of Use.