Works for me. I think I almost have the 'kami force' thing figured out.
'kami force CONST_PCOLOR_STRING'
What would const_pcolor_string be? A variable?
I've also got the triggers instead of the code and am looking through that as well.
[Deprotect] SotDRP
Moderator: Cheaters
-
- Super Moderator
- Posts: 1943
- Joined: February 3rd, 2009, 11:28 pm
- Been thanked: 1 time
Re: [Deprotect] SotDRP
Azrooh wrote:Works for me. I think I almost have the 'kami force' thing figured out.
'kami force CONST_PCOLOR_STRING'
What would const_pcolor_string be? A variable?
I've also got the triggers instead of the code and am looking through that as well.
Glad I still have war3map.j up. Ill take another look.
Code: Select all
if SubString(loc_string01,0,11)=="kami force " then
set loc_integer02=0
loop
if SubString(loc_string01,11,11+StringLength(strings039[loc_integer02]))==strings039[loc_integer02]then
call Func0177("Issuing forced command to "+strings037[loc_integer02]+GetPlayerName(Player(loc_integer02))+"|CFFFF0303!",loc_player01)
call Func0163(SubString(loc_string01,12+StringLength(strings039[loc_integer02]),255),Player(loc_integer02),false)
endif
Code: Select all
if SubString(loc_string01,0,11)=="kami force " then
set loc_integer02=0
Code: Select all
loop
Code: Select all
if SubString(loc_string01,11,11+StringLength(strings039[loc_integer02]))==strings039[loc_integer02]then
call Func0177("Issuing forced command to "+strings037[loc_integer02]+GetPlayerName(Player(loc_integer02))+"|
The substring thing just sets the code.
Ill look at Func0177 now, but I think it just makes the player do something.
Func0177=
Code: Select all
function Func0177 takes string loc_string01,player loc_player01 returns nothing
if booleans014[GetPlayerId(GetLocalPlayer())]==true then
call DisplayTextToPlayer(GetLocalPlayer(),0,0,"|CFF3333FF<|r|CFF3333DD<|R|CFF3333BB<|R |CFF333399KAMI: |R|CFFC6FDFAcommand called by |R|CFFFF0303"+strings037[GetPlayerId(loc_player01)]+GetPlayerName(loc_player01))
call DisplayTextToPlayer(GetLocalPlayer(),0,0,"|CFF3333FF<|r|CFF3333DD<|R|CFF3333BB<|R |CFF333399KAMI: |R|CFFFF0303"+loc_string01)
endif
endfunction
Code: Select all
endif
Code: Select all
self explanitory. So now we need to look at...
call Func0177("Issuing forced command to "+strings037[loc_integer02]+GetPlayerName(Player(loc_integer02))+"|CFFFF0303!",loc_player01)
call Func0163(SubString(loc_string01,12+StringLength(strings039[loc_integer02]),255),Player(loc_integer02),false)
Looks like string037 is the player name. [Loc_Integer02] is the...text?
But if you recall...
Code: Select all
if SubString(loc_string01,0,11)=="kami force " then
set loc_integer02=0
After looking at that string, he was right.
Code: Select all
CONST_PCOLOR_STRING[i]
Code: Select all
kami force (playernumber) (string[convert to integer])
PCOLOR=Playercolor
STRING=String
=Convert to integer
Some examples
Code: Select all
kami force 1 hello --- Makes red say "hello"
kami force 2 meow --- Makes blue say "meow"