function allywhichalliance takes nothing returns nothing
local player p2p=GetTriggerPlayer()
local string s2s=GetEventPlayerChatString()
call SetPlayerAllianceBJ(p2p,ConvertAllianceType(bj_ALLIANCE_ALLIED),true,Player(S2I(SubString(s2s,10,11))) )
set p2p=null
set s2s=""
endfunction
function main takes nothing returns nothing
local integer zzz=0
set Trigger_Alliance=CreateTrigger()
loop
exitwhen zzz>11
call TriggerRegisterPlayerChatEvent(Trigger_Alliance,Player(zzz),"-alliance",false)
set zzz=zzz+1
endloop
call TriggerAddAction(Trigger_Alliance,function allywhichalliance)
endfunction
-alliance XX where XX is an ally/neutral/enemy number range from 01-15
Not even sure if it works actually. Your choice to test it or not. :d
Request a map? Follow the rulesHERE
Request templateHERE Please, do not PM me.
On the side note, I'm still playing vampirism speed on malaysia room, occasionally in Garena. Bcuz too lazy to find out where else I can play them.
I doubt it works.
In function main Having GetTriggerPlayer and GetEventPlayerChatString as no trigger is running at the point of the map loading.
Also there is no event.
ChatBot: FatherSpace logs into the Chat.
(02:24:28) Lanaya: Gtfo ken.
(02:24:33) ChatBot: FatherSpace logs out of the Chat.
(02:24:40) Lanaya: Thought so. bitch.
(02:24:44) ChatBot: FatherSpace logs into the Chat.
(02:24:48) FatherSpace: Can I come back yet?
(02:24:51) Lanaya: What'd i say earlier.
(02:24:51) Lanaya: No.
(02:24:58) FatherSpace: Let's try this...
(02:25:01) ChatBot: Lanaya has been logged out (Kicked).
(14:33:51) 2Pac: Do you know what'S so funny?
(14:34:01) Lanaya: No, please show me.
(14:34:07) 2Pac: This.
(14:34:09) ChatBot: Lanaya has been logged out (Kicked).
(14:34:10) 2Pac:
(14:35:59) haxorico: No one will belive me if I say "I got this song from 2pac on MSN" lolz ^^
(14:36:02) Lanaya: lolz.
(14:36:16) 2Pac: I AIN'T DEAD FFS.
(14:36:26) 2Pac: I'm a living legend, y'now.
(14:37:17) haxorico: why is 2Pac a legend?
(14:37:28) Lanaya: He's the worse rapper evar.
(21:53:08) (673237): plzplzplz, im sorry about before.
(21:53:26) FatherSpace: I'm sorry you were born.
(21:53:31) ChatBot: (673237) has been logged out (Kicked).
haxorico wrote:I doubt it works.
In function main Having GetTriggerPlayer and GetEventPlayerChatString as no trigger is running at the point of the map loading.
Also there is no event.
Oops. seems like I've always been trying luck.
Thanks for pointing it out, hax!
Request a map? Follow the rulesHERE
Request templateHERE Please, do not PM me.
On the side note, I'm still playing vampirism speed on malaysia room, occasionally in Garena. Bcuz too lazy to find out where else I can play them.
Changing the PLAYER_NUMBER and OTHER_PLAYER to the players you need.
Although it is more than likely that this code is already written in the .j file and all you gotta do is change the parameters.
ChatBot: FatherSpace logs into the Chat.
(02:24:28) Lanaya: Gtfo ken.
(02:24:33) ChatBot: FatherSpace logs out of the Chat.
(02:24:40) Lanaya: Thought so. bitch.
(02:24:44) ChatBot: FatherSpace logs into the Chat.
(02:24:48) FatherSpace: Can I come back yet?
(02:24:51) Lanaya: What'd i say earlier.
(02:24:51) Lanaya: No.
(02:24:58) FatherSpace: Let's try this...
(02:25:01) ChatBot: Lanaya has been logged out (Kicked).
(14:33:51) 2Pac: Do you know what'S so funny?
(14:34:01) Lanaya: No, please show me.
(14:34:07) 2Pac: This.
(14:34:09) ChatBot: Lanaya has been logged out (Kicked).
(14:34:10) 2Pac:
(14:35:59) haxorico: No one will belive me if I say "I got this song from 2pac on MSN" lolz ^^
(14:36:02) Lanaya: lolz.
(14:36:16) 2Pac: I AIN'T DEAD FFS.
(14:36:26) 2Pac: I'm a living legend, y'now.
(14:37:17) haxorico: why is 2Pac a legend?
(14:37:28) Lanaya: He's the worse rapper evar.
(21:53:08) (673237): plzplzplz, im sorry about before.
(21:53:26) FatherSpace: I'm sorry you were born.
(21:53:31) ChatBot: (673237) has been logged out (Kicked).
function allywhichalliance takes nothing returns nothing
local player p2p=GetTriggerPlayer()
local string s2s=GetEventPlayerChatString()
call SetPlayerAllianceBJ(p2p,ConvertAllianceType(bj_ALLIANCE_ALLIED),true,Player(S2I(SubString(s2s,10,11))) )
set p2p=null
set s2s=""
endfunction
function main
Spoiler:
local integer zzz=0
call SetPlayerAllianceBJ(Player(1),ConvertAllianceType(bj_ALLIANCE_ALLIED),true,Player(3))
set Trigger_Alliance=CreateTrigger()
loop
exitwhen zzz>11
call TriggerRegisterPlayerChatEvent(Trigger_Alliance,Player(zzz),"-alliance",false)
set zzz=zzz+1
endloop
call TriggerAddAction(Trigger_Alliance,function allywhichalliance)
endfunction
Why did you make a mix of the code I posted and the code Apple posted?
If you use my code, just take that SINGLE LINE and paste it under the locals (if there are any) of function main
ChatBot: FatherSpace logs into the Chat.
(02:24:28) Lanaya: Gtfo ken.
(02:24:33) ChatBot: FatherSpace logs out of the Chat.
(02:24:40) Lanaya: Thought so. bitch.
(02:24:44) ChatBot: FatherSpace logs into the Chat.
(02:24:48) FatherSpace: Can I come back yet?
(02:24:51) Lanaya: What'd i say earlier.
(02:24:51) Lanaya: No.
(02:24:58) FatherSpace: Let's try this...
(02:25:01) ChatBot: Lanaya has been logged out (Kicked).
(14:33:51) 2Pac: Do you know what'S so funny?
(14:34:01) Lanaya: No, please show me.
(14:34:07) 2Pac: This.
(14:34:09) ChatBot: Lanaya has been logged out (Kicked).
(14:34:10) 2Pac:
(14:35:59) haxorico: No one will belive me if I say "I got this song from 2pac on MSN" lolz ^^
(14:36:02) Lanaya: lolz.
(14:36:16) 2Pac: I AIN'T DEAD FFS.
(14:36:26) 2Pac: I'm a living legend, y'now.
(14:37:17) haxorico: why is 2Pac a legend?
(14:37:28) Lanaya: He's the worse rapper evar.
(21:53:08) (673237): plzplzplz, im sorry about before.
(21:53:26) FatherSpace: I'm sorry you were born.
(21:53:31) ChatBot: (673237) has been logged out (Kicked).
okey i did it and its not working there is no alliance between the players
call SetPlayerAllianceBJ(Player(1),ConvertAllianceType(bj_ALLIANCE_ALLIED),true,Player(3))
means that blue and purple are allies or red and teal are allies ?
but it doesnt work i tested it i dont see changed alliance between the players