Re: QP System

From: Alexander Anikin (anikin@teledes.ru)
Date: 02/14/00


> Okay here is my attempt: (DG Scripts wouldnt work, and i think this is the
> best way anyway)
>
> I added the following code into fight.c
>
>     make_corpse(ch);
> >>  if (IS_NPC(ch) && GET_QUESTP(killer) > 0)
> >>    (GET_QUESTP(ch) + GET_QUESTP(killer));
>
> It compiles perfectly, and runs, but when i kill the mob with the quest
> points (I also added a place where i can set mob qps in the medit function
of
> oasis, and that seems to work) okay when i kill the mob, the questpoints
dont
> transfer over to the player. can anyone suggest anything? thank you.

Its seems strange to me you write just GET_QUESTP(ch)+GET_QUESTP(killer)...
Probably you don't make assignment  - possibly should be GET_QUESTP(killer)
= GET_QUESTP(ch)+GET_QUESTP(killer)

The second possible trouble here:
IS_NPC(ch) && GET_QUEST(killer) will make sure that mob killed and mob's
KILLER have QUEST POINTS...
I suppose you should change it to IS_NPC(ch) && GET_QUEST(ch).

> Jerry
[skip]


     +------------------------------------------------------------+
     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     |  http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html  |
     +------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 04/10/01 PDT