ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/plugins/cfperl/cfperl.xs
(Generate patch)

Comparing deliantra/server/plugins/cfperl/cfperl.xs (file contents):
Revision 1.63 by root, Thu Jul 20 07:22:41 2006 UTC vs.
Revision 1.65 by elmex, Sat Aug 12 11:51:38 2006 UTC

420 registerGlobalEvent (NULL, EVENT_BORN, PLUGIN_NAME, globalEventListener); 420 registerGlobalEvent (NULL, EVENT_BORN, PLUGIN_NAME, globalEventListener);
421 registerGlobalEvent (NULL, EVENT_CLOCK, PLUGIN_NAME, globalEventListener); 421 registerGlobalEvent (NULL, EVENT_CLOCK, PLUGIN_NAME, globalEventListener);
422 //registerGlobalEvent (NULL, EVENT_CRASH, PLUGIN_NAME, globalEventListener); 422 //registerGlobalEvent (NULL, EVENT_CRASH, PLUGIN_NAME, globalEventListener);
423 registerGlobalEvent (NULL, EVENT_FIND_UNARMED_SKILL, PLUGIN_NAME, globalEventListener); 423 registerGlobalEvent (NULL, EVENT_FIND_UNARMED_SKILL, PLUGIN_NAME, globalEventListener);
424 registerGlobalEvent (NULL, EVENT_PLAYER_USE_SKILL, PLUGIN_NAME, globalEventListener); 424 registerGlobalEvent (NULL, EVENT_PLAYER_USE_SKILL, PLUGIN_NAME, globalEventListener);
425 registerGlobalEvent (NULL, EVENT_CAST_SPELL, PLUGIN_NAME, globalEventListener);
425 registerGlobalEvent (NULL, EVENT_MONSTER_USE_SKILL, PLUGIN_NAME, globalEventListener); 426 registerGlobalEvent (NULL, EVENT_MONSTER_USE_SKILL, PLUGIN_NAME, globalEventListener);
426 registerGlobalEvent (NULL, EVENT_PLAYER_DEATH, PLUGIN_NAME, globalEventListener); 427 registerGlobalEvent (NULL, EVENT_PLAYER_DEATH, PLUGIN_NAME, globalEventListener);
427 registerGlobalEvent (NULL, EVENT_GKILL, PLUGIN_NAME, globalEventListener); 428 registerGlobalEvent (NULL, EVENT_GKILL, PLUGIN_NAME, globalEventListener);
428 registerGlobalEvent (NULL, EVENT_LOGIN, PLUGIN_NAME, globalEventListener); 429 registerGlobalEvent (NULL, EVENT_LOGIN, PLUGIN_NAME, globalEventListener);
429 registerGlobalEvent (NULL, EVENT_LOGOUT, PLUGIN_NAME, globalEventListener); 430 registerGlobalEvent (NULL, EVENT_LOGOUT, PLUGIN_NAME, globalEventListener);
592 PUSH_OB; 593 PUSH_OB;
593 break; 594 break;
594 595
595 case EVENT_PLAYER_USE_SKILL: 596 case EVENT_PLAYER_USE_SKILL:
596 case EVENT_MONSTER_USE_SKILL: 597 case EVENT_MONSTER_USE_SKILL:
598 case EVENT_CAST_SPELL:
597 PUSH_OB; 599 PUSH_OB;
598 PUSH_OB; 600 PUSH_OB;
599 PUSH_OB; 601 PUSH_OB;
600 PUSH_IV; 602 PUSH_IV;
601 PUSH_PV; 603 PUSH_PV;
1268 const_event (TELL) 1270 const_event (TELL)
1269 const_event (MUZZLE) 1271 const_event (MUZZLE)
1270 const_event (KICK) 1272 const_event (KICK)
1271 const_event (PLAYER_USE_SKILL) 1273 const_event (PLAYER_USE_SKILL)
1272 const_event (MONSTER_USE_SKILL) 1274 const_event (MONSTER_USE_SKILL)
1275 const_event (CAST_SPELL)
1273 const_event (FIND_UNARMED_SKILL) 1276 const_event (FIND_UNARMED_SKILL)
1274 const_event (EXTCMD) 1277 const_event (EXTCMD)
1275 //const_event (FREE_OB) 1278 //const_event (FREE_OB)
1276 }; 1279 };
1277 1280
1608 1611
1609int cf_object_pay_item (object *op, object *buyer) 1612int cf_object_pay_item (object *op, object *buyer)
1610 1613
1611int cf_object_pay_amount (object *op, val64 amount) 1614int cf_object_pay_amount (object *op, val64 amount)
1612 1615
1616void pay_player (object *op, val64 amount)
1617
1618val64 pay_player_arch (object *op, const char *arch, val64 amount)
1619
1613int cf_object_cast_spell (object *caster, object *ctoo, int dir, object *spell_ob, char *stringarg = 0) 1620int cf_object_cast_spell (object *caster, object *ctoo, int dir, object *spell_ob, char *stringarg = 0)
1614 1621
1615int cf_object_cast_ability (object *caster, object *ctoo, int dir, object *sp_, char *stringarg = 0) 1622int cf_object_cast_ability (object *caster, object *ctoo, int dir, object *sp_, char *stringarg = 0)
1616 1623
1617void cf_object_learn_spell (object *op, object *sp) 1624void cf_object_learn_spell (object *op, object *sp)
1654void cf_object_pickup (object *op, object *what) 1661void cf_object_pickup (object *op, object *what)
1655 1662
1656object *cf_create_object_by_name (const char *name) 1663object *cf_create_object_by_name (const char *name)
1657 1664
1658void change_exp (object *op, val64 exp, const char *skill_name = 0, int flag = 0) 1665void change_exp (object *op, val64 exp, const char *skill_name = 0, int flag = 0)
1659
1660void pay_player (object *op, val64 amount)
1661
1662val64 pay_player_arch (object *op, const char *arch, val64 amount)
1663 1666
1664void player_lvl_adj (object *who, object *skill = 0) 1667void player_lvl_adj (object *who, object *skill = 0)
1665 1668
1666int kill_object (object *op, int dam = 0, object *hitter = 0, int type = AT_PHYSICAL) 1669int kill_object (object *op, int dam = 0, object *hitter = 0, int type = AT_PHYSICAL)
1667 1670
2133archetype *cf_archetype_get_more (archetype *arch) 2136archetype *cf_archetype_get_more (archetype *arch)
2134 ALIAS: more = 0 2137 ALIAS: more = 0
2135 2138
2136const char *cf_archetype_get_name (archetype *arch) 2139const char *cf_archetype_get_name (archetype *arch)
2137 ALIAS: name = 0 2140 ALIAS: name = 0
2141
2142object *cf_archetype_get_clone (archetype *arch)
2143 ALIAS: clone = 0
2138 2144
2139MODULE = cf PACKAGE = cf::party PREFIX = cf_party_ 2145MODULE = cf PACKAGE = cf::party PREFIX = cf_party_
2140 2146
2141partylist *cf_party_get_first () 2147partylist *cf_party_get_first ()
2142 PROTOTYPE: 2148 PROTOTYPE:

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines