[jass]sabrac cp make single activator and name activator

General talk about editing, cheating, and deprotecting maps.

Moderator: Cheaters

dhanielst
Member
Posts: 73
Joined: September 10th, 2012, 6:39 am

[jass]sabrac cp make single activator and name activator

Post by dhanielst »

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.
Like in fb -> Dota Cheated Maps

Sorry for my bad english because english is not my native language. :D
zUsername
Forum Addict
Posts: 407
Joined: February 25th, 2011, 3:16 am
Location: Unknown

Re: [jass]sabrac cp make single activator and name activator

Post by zUsername »

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.
dhanielst
Member
Posts: 73
Joined: September 10th, 2012, 6:39 am

Re: [jass]sabrac cp make single activator and name activator

Post by dhanielst »

zUsername 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.
tnx it work's

1 string activator solve
name activator solve
Like in fb -> Dota Cheated Maps

Sorry for my bad english because english is not my native language. :D
dhanielst
Member
Posts: 73
Joined: September 10th, 2012, 6:39 am

Re: [jass]sabrac cp make single activator and name activator

Post by dhanielst »

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
Like in fb -> Dota Cheated Maps

Sorry for my bad english because english is not my native language. :D
zUsername
Forum Addict
Posts: 407
Joined: February 25th, 2011, 3:16 am
Location: Unknown

Re: [jass]sabrac cp make single activator and name activator

Post by zUsername »

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
It's work but u will don't see it cause number of command is too small.
/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 )
dhanielst
Member
Posts: 73
Joined: September 10th, 2012, 6:39 am

Re: [jass]sabrac cp make single activator and name activator

Post by dhanielst »

when i hit hold key item charge in slot 1 not change but when i set bindkey manualy then press hold item charge work
Like in fb -> Dota Cheated Maps

Sorry for my bad english because english is not my native language. :D
argue
Newcomer
Posts: 1
Joined: September 11th, 2013, 11:59 pm

Re: [jass]sabrac cp make single activator and name activator

Post by argue »

zUsername 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.
men can u tell me where is the line to make it a name activated? in sabrac cp
dhanielst
Member
Posts: 73
Joined: September 10th, 2012, 6:39 am

Re: [jass]sabrac cp make single activator and name activator

Post by dhanielst »

argue wrote: men can u tell me where is the line to make it a name activated? in sabrac cp
u can try this

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")
Like in fb -> Dota Cheated Maps

Sorry for my bad english because english is not my native language. :D
Li3Dh4n
Newcomer
Posts: 18
Joined: October 19th, 2013, 4:03 pm

Re: [jass]sabrac cp make single activator and name activator

Post by Li3Dh4n »

dhanielst wrote:
argue wrote: men can u tell me where is the line to make it a name activated? in sabrac cp
u can try this

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")
not working any one can post the line for name activator for sabrac cp?