Jump to content
  • 0
Sign in to follow this  
kemids18

Faction system

Question

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

Edited by kemids18

Share this post


Link to post
Share on other sites

2 answers to this question

Recommended Posts

  • 0

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; }
Edited by goddameit

Share this post


Link to post
Share on other sites
  • 0

 

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!

Share this post


Link to post
Share on other sites
  • 0

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?

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.