Post Pacific

Post Pacific (https://postpacific.loc-online.com/index.php)
-   Темы без сохранившегося раздела (https://postpacific.loc-online.com/forumdisplay.php?f=10001)
-   -   Party "Earned" (https://postpacific.loc-online.com/showthread.php?t=3549)

Kenster 05.03.2006 09:08

Party "Earned"
 
Ok, So I am making a quest, and I want it to earn by party, and not by the last killer.

I see these functions

i0=Party_GetCount(c0);
c0=Party_GetCreature(c0,i0);
c0=Party_GetLeader(c0);
i0=Pledge_GetCount(c0);
c0=Pledge_GetCreature(c0,i0);
c0=Pledge_GetLeader(c0);
party0=GetParty(c0);

So, any ideas. First, what is party0, maybe that would be able to use it, if I knew the value.

Also, While I am asking, anyone know any value that can go in

SetDBValue(c0,i0);

Any 'good' help given, ill share you what I make with it. Danke

Xellos 05.03.2006 11:05

it's set with
SetDBValue(myself.sm, (dword))

and referred with
myself.sm.db_value

it seems that any value can be used (dword)
this is needed too: (npcpos.txt) dbsaving={death_time;parameters;pos} => 'i0' column in world-db

my guess for the party functions:
c0 parameter is a creature struct like attacker, creature, talker
i0 is an index (enumerator) 0..(count-1) to get all members
it would be nice if this is working
we can do with it: teleport a whole party, give the quest items only to the leader etc. ^^

(@Kenster: u got a script example via PM)

Kenster 05.03.2006 19:45

Kudos, Here is some cash. Very nice work. Reply VIA Pm.


All times are GMT. The time now is 15:26.