Post Pacific  

Go Back   Post Pacific > Восстановленный архив > Темы без сохранившегося раздела
FAQ Community Calendar Today's Posts Search

Notices

 
 
Thread Tools Search this Thread Display Modes
Old 05.03.2006, 09:08   #1
Kenster
Архивный участник
 
Join Date: Sep 2005
Posts: 455
Default 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
Kenster is offline  
Old 05.03.2006, 11:05   #2
Xellos
Архивный участник
 
Join Date: Feb 2006
Posts: 88
Default

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)
Xellos is offline  
Old 05.03.2006, 19:45   #3
Kenster
Архивный участник
 
Join Date: Sep 2005
Posts: 455
Default

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


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 21:29.