Faction system

kemids18

New member
Messages
14
Points
0
Emulator
hi there!

can i request for a simple faction system.

features.

enable fvf on selected maps

no trade on fvf maps

as simple as that thank and more power

 
Last edited by a moderator:
battle_check_target

if(pc_readglobalreg((TBL_PC*)src,script->add_str("faction")) != pc_readglobalreg((TBL_PC*)target,script->add_str("faction")) && src->m == SPECIAL_MAP_ID ) { return 1; }
trade_traderequest

Code:
if(pc_readglobalreg(sd,script->add_str("faction")) != pc_readglobalreg(target_sd,script->add_str("faction")) && src->m == SPECIAL_MAP_ID ) { return; }
 
Last edited by a moderator:
battle_check_target

if(pc_readglobalreg((TBL_PC*)src,script->add_str("faction")) != pc_readglobalreg((TBL_PC*)target,script->add_str("faction")) && src->m == SPECIAL_MAP_ID ) { return 1; }
trade_traderequest

if(pc_readglobalreg(sd,script->add_str("faction")) != pc_readglobalreg(target_sd,script->add_str("faction")) && src->m == SPECIAL_MAP_ID ) { return; }
oh my its goddameit! im always following your scripts. im new to hercules and scripting can you please give steps how to apply those? thank you so much!

 
it works if you press shift. how to make an attack right away? I searched for a long time in clif.c how to make an enemy. not found = (

can someone tell me how to send a packet to a client about an enemy?

 
Back
Top