Jump to content

[REQUEST] Clan Gate Fix !


Recommended Posts

(i have noticed that i posted that in wrong section just after that i posted, well im sorrt for that, thanks if any moderator can move it to "[Request] Dev Help [OFF]")

 

Hey guys, first of i wanted to say "hello" since im new here.

 

When a clan own castle, they got "Go to clan leader" option at chamberlian. They should be able to use it ONLY when clan leader use "Clan Gate" skill.

 

Well... now my problem:

 

Clan members can use "Go to clan leader" any time when leader is in game, they are also allowed to teleport to him EVEN when he is dead. I post here AI of Clan Gate that my server use.

 

//-------------
//CLAN GATE
//-------------
push_event	//  ask
push_const 160
add
fetch_i4
push_const 1100
equal
branch_false L101
L100
push_event	//  c0
push_const 344
add
push_reg_sp
fetch_i
push_event	//  myself
push_const 704
add
fetch_i
push_event	//  talker
push_const 40
add
fetch_i
func_call 184615032	//  func[Pledge_GetLeader]
shift_sp -1
assign
shift_sp -1
push_event	//  myself
push_const 704
add
fetch_i
push_event	//  c0
push_const 344
add
fetch_i
func_call 184614913	//  func[isNullCreature]
shift_sp -1
push_const 0
equal
branch_false L103
L102
push_event	//  myself
push_const 704
add
fetch_i
push_event	//  c0
push_const 344
add
fetch_i
push_event	//  myself
push_const 704
add
fetch_i
push_const 1165057
func_call 184615131	//  func[skill_GetAbnormalType]
shift_sp -1
func_call 184680557	//  func[GetAbnormalLevel]
shift_sp -2
push_const 0
greater
branch_false L105
L104
push_event	//  i0
push_const 260
add
push_reg_sp
fetch_i
push_event	//  myself
push_const 704
add
fetch_i
push_event	//  c0
push_const 344
add
fetch_i	//  x
push_const 8
add
fetch_d
func_call 184615005	//  func[FloatToInt]
shift_sp -1
assign
shift_sp -1
push_event	//  i1
push_const 264
add
push_reg_sp
fetch_i
push_event	//  myself
push_const 704
add
fetch_i
push_event	//  c0
push_const 344
add
fetch_i	//  y
push_const 16
add
fetch_d
func_call 184615005	//  func[FloatToInt]
shift_sp -1
assign
shift_sp -1
push_event	//  i2
push_const 268
add
push_reg_sp
fetch_i
push_event	//  myself
push_const 704
add
fetch_i
push_event	//  c0
push_const 344
add
fetch_i	//  z
push_const 24
add
fetch_d
func_call 184615005	//  func[FloatToInt]
shift_sp -1
assign
shift_sp -1
push_event	//  myself
push_const 704
add
fetch_i
push_event	//  talker
push_const 40
add
fetch_i
push_event	//  i0
push_const 260
add
fetch_i4
push_event	//  i1
push_const 264
add
fetch_i4
push_event	//  i2
push_const 268
add
fetch_i4
func_call 184811596	//  func[instantTeleport]
shift_sp -4
shift_sp -1
L105
L103
L101
//-------------
//CLAN GATE END
//-------------

 

If someone got this feature working AS IT SHOULD WORK on his server please help me with that. Full AI is welcome :)

 

- JohnyBoy

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now


×
×
  • Create New...