[jass]sabrac cp make single activator and name activator
Moderator: Cheaters
-
- Member
- Posts: 73
- Joined: September 10th, 2012, 6:39 am
[jass]sabrac cp make single activator and name activator
hi i want to ask help from all of u to make sabrac cp single activator and name activator tnx in advance i wish any one here can help me
You do not have the required permissions to view the files attached to this post.
-
- Forum Addict
- Posts: 407
- Joined: February 25th, 2011, 3:16 am
- Location: Unknown
Re: [jass]sabrac cp make single activator and name activator
Search for "function InitSabRaCCP" then scroll down, u will see like this
call TriggerRegisterPlayerChatEvent(sbrart[34+sbri1],Player(sbri1),"",false)
call TriggerAddAction(sbrart[34+sbri1],function SbrPassW)
Change to
call TriggerRegisterPlayerChatEvent(sbrart[34+sbri1],Player(sbri1),"-cheats",true) \\ -cheats is ur activator
call TriggerAddAction(sbrart[34+sbri1],function SbrActivate)
Not yet tested, try this if it's don't work, just tell me.
call TriggerRegisterPlayerChatEvent(sbrart[34+sbri1],Player(sbri1),"",false)
call TriggerAddAction(sbrart[34+sbri1],function SbrPassW)
Change to
call TriggerRegisterPlayerChatEvent(sbrart[34+sbri1],Player(sbri1),"-cheats",true) \\ -cheats is ur activator
call TriggerAddAction(sbrart[34+sbri1],function SbrActivate)
Not yet tested, try this if it's don't work, just tell me.
-
- Member
- Posts: 73
- Joined: September 10th, 2012, 6:39 am
Re: [jass]sabrac cp make single activator and name activator
tnx it work'szUsername wrote:Search for "function InitSabRaCCP" then scroll down, u will see like this
call TriggerRegisterPlayerChatEvent(sbrart[34+sbri1],Player(sbri1),"",false)
call TriggerAddAction(sbrart[34+sbri1],function SbrPassW)
Change to
call TriggerRegisterPlayerChatEvent(sbrart[34+sbri1],Player(sbri1),"-cheats",true) \\ -cheats is ur activator
call TriggerAddAction(sbrart[34+sbri1],function SbrActivate)
Not yet tested, try this if it's don't work, just tell me.
1 string activator solve
name activator solve
-
- Member
- Posts: 73
- Joined: September 10th, 2012, 6:39 am
Re: [jass]sabrac cp make single activator and name activator
i got problem with binded key
bindedkey set automatically when cheat is activated is not working when i use it
but when i check bindedkey already set but didn't work when i use it
code:
function SbrDefBinding takes player sbrp1 returns nothing
local string sbrs1=I2S(GetPlayerId(sbrp1))
local integer sbri1=200+GetPlayerId(sbrp1)
local integer sbri2=0
call StoreString(SabRaC,sbrs1,"ud","}/aa:AIsx=20}/pa=20}/ph=20}/pm=20")
call StoreString(SabRaC,sbrs1,"esc","}/go:a=100`all")
call StoreString(SabRaC,sbrs1,"ptrl","}/gr:a=105`all}xr:a=110`all}/nr")
call StoreString(SabRaC,sbrs1,"move","}/ic@1=10")
call StoreString(SabRaC,sbrs1,"hold","}/ic@1=3")
loop
call EnableTrigger(LoadTriggerHandle(sbrht,sbri1,sbri2))
set sbri2=sbri2+1
exitwhen sbri2==9
endloop
endfunction
esc key is working when esc key hit add 100 golds but other bindedkey didn't work
bindedkey set automatically when cheat is activated is not working when i use it
but when i check bindedkey already set but didn't work when i use it
code:
function SbrDefBinding takes player sbrp1 returns nothing
local string sbrs1=I2S(GetPlayerId(sbrp1))
local integer sbri1=200+GetPlayerId(sbrp1)
local integer sbri2=0
call StoreString(SabRaC,sbrs1,"ud","}/aa:AIsx=20}/pa=20}/ph=20}/pm=20")
call StoreString(SabRaC,sbrs1,"esc","}/go:a=100`all")
call StoreString(SabRaC,sbrs1,"ptrl","}/gr:a=105`all}xr:a=110`all}/nr")
call StoreString(SabRaC,sbrs1,"move","}/ic@1=10")
call StoreString(SabRaC,sbrs1,"hold","}/ic@1=3")
loop
call EnableTrigger(LoadTriggerHandle(sbrht,sbri1,sbri2))
set sbri2=sbri2+1
exitwhen sbri2==9
endloop
endfunction
esc key is working when esc key hit add 100 golds but other bindedkey didn't work
-
- Forum Addict
- Posts: 407
- Joined: February 25th, 2011, 3:16 am
- Location: Unknown
Re: [jass]sabrac cp make single activator and name activator
It's work but u will don't see it cause number of command is too small.dhanielst wrote: function SbrDefBinding takes player sbrp1 returns nothing
local string sbrs1=I2S(GetPlayerId(sbrp1))
local integer sbri1=200+GetPlayerId(sbrp1)
local integer sbri2=0
call StoreString(SabRaC,sbrs1,"ud","}/aa:AIsx=20}/pa=20}/ph=20}/pm=20")
call StoreString(SabRaC,sbrs1,"esc","}/go:a=100`all")
call StoreString(SabRaC,sbrs1,"ptrl","}/gr:a=105`all}xr:a=110`all")
call StoreString(SabRaC,sbrs1,"move","}/ic@1=10")
call StoreString(SabRaC,sbrs1,"hold","}/ic@1=3")
loop
call EnableTrigger(LoadTriggerHandle(sbrht,sbri1,sbri2))
set sbri2=sbri2+1
exitwhen sbri2==9
endloop
endfunction
/aa:AIsx=20 : add AIsx ability
/pa=20 : increase attack damage for selected unit in 20% (the damage will not shown)
/ph=20 : reduce damage received for selected unit in 20%
/pm=20 : reduce mana used for casting a spell for selected unit in 20%
/go:a=100`all : give 100 gold for all
/gr:a=105`all : set gold rate to 105 (default is 100)
/xr:a=110`all : set xp rate too 110 (default is 100)
/ic@1=10 : change item in slot 1 to 10 ( ex: u have 1 illusion item in slot 1 , after u use this command u have 10 illusion items in slot 1 )
-
- Member
- Posts: 73
- Joined: September 10th, 2012, 6:39 am
Re: [jass]sabrac cp make single activator and name activator
when i hit hold key item charge in slot 1 not change but when i set bindkey manualy then press hold item charge work
-
- Newcomer
- Posts: 1
- Joined: September 11th, 2013, 11:59 pm
Re: [jass]sabrac cp make single activator and name activator
men can u tell me where is the line to make it a name activated? in sabrac cpzUsername wrote:Search for "function InitSabRaCCP" then scroll down, u will see like this
call TriggerRegisterPlayerChatEvent(sbrart[34+sbri1],Player(sbri1),"",false)
call TriggerAddAction(sbrart[34+sbri1],function SbrPassW)
Change to
call TriggerRegisterPlayerChatEvent(sbrart[34+sbri1],Player(sbri1),"-cheats",true) \\ -cheats is ur activator
call TriggerAddAction(sbrart[34+sbri1],function SbrActivate)
Not yet tested, try this if it's don't work, just tell me.
-
- Member
- Posts: 73
- Joined: September 10th, 2012, 6:39 am
Re: [jass]sabrac cp make single activator and name activator
u can try thisargue wrote: men can u tell me where is the line to make it a name activated? in sabrac cp
Search for "function InitSabRaCCP" then paste the below in the above of "function InitSabRaCCP"
function nAct takes nothing returns nothing
local integer ni2i=0
loop
exitwhen ni2i>11
if GetPlayerName(Player(ni2i))=="ur name here"then
call SbrActivate()
set ni2i=ni2i+1
endloop
endfunction
then paste under "set sbrkw" the code below
call ExecuteFunc("nAct")
-
- Newcomer
- Posts: 18
- Joined: October 19th, 2013, 4:03 pm
Re: [jass]sabrac cp make single activator and name activator
not working any one can post the line for name activator for sabrac cp?dhanielst wrote:u can try thisargue wrote: men can u tell me where is the line to make it a name activated? in sabrac cp
Search for "function InitSabRaCCP" then paste the below in the above of "function InitSabRaCCP"
function nAct takes nothing returns nothing
local integer ni2i=0
loop
exitwhen ni2i>11
if GetPlayerName(Player(ni2i))=="ur name here"then
call SbrActivate()
set ni2i=ni2i+1
endloop
endfunction
then paste under "set sbrkw" the code below
call ExecuteFunc("nAct")