how to add comands for increase stats in maps??

General talk about editing, cheating, and deprotecting maps.

Moderator: Cheaters

User avatar
pirroludo
Junior Member
Posts: 47
Joined: May 20th, 2009, 3:37 pm
Title: ^^ THis A Life^^
Location: brasil

how to add comands for increase stats in maps??

Post by pirroludo »

every level up you gain 3 stats points for add, and you use the comand -agi 3 for add 3 points of agi, -str 3 for add 3 points in str.

and the comand -create

ps: this comands add in maps korean language


thx for all and sory for my bad english.
By Pirroludo
User avatar
haxorico
Super Moderator
Posts: 3190
Joined: February 24th, 2009, 1:31 pm
Location: JEW LAND

Re: how to add comands for increase stats in maps??

Post by haxorico »

You want it in GUI or in JASS?

You want it available for all players or only those who activated it?

If you want it in jass for all players.

Under globals:
Spoiler:

Code: Select all

trigger addStatsOnLevelUp=CreateTrigger() // the trigger that we need
constant integer AMOUNT_OF_STATS_TO_ADD=3 //the amount of stats added to the leveling hero


Under EndGlobals:
Spoiler:

Code: Select all

function addStatsOnLevelUp_Action takes nothing returns nothing
call SetHeroStr(GetTriggerUnit(),GetHeroStr(GetTriggerUnit(),false)+AMOUNT_OF_STATS_TO_ADD,true)
call SetHeroAgi(GetTriggerUnit(),GetHeroAgi(GetTriggerUnit(),false)+AMOUNT_OF_STATS_TO_ADD,true)
call SetHeroInt(GetTriggerUnit(),GetHeroInt(GetTriggerUnit(),false)+AMOUNT_OF_STATS_TO_ADD,true)
endfunction

function statsMain takes nothing returns nothing
local integer index=0
loop
exitwhen index>11
call TriggerRegisterPlayerUnitEvent(addStatsOnLevelUp,Player(index),ConvertPlayerUnitEvent(41),null)
set index=index+1
endloop
call TriggerAddAction(addStatsOnLevelUp,function addStatsOnLevelUp_Action)
endfunction


Under the locals of function main
Spoiler:

Code: Select all

call statsMain()


I didn't test it but it should work.

Same in GUI is on the attached map (I don't know any other way to post a GUI trigger)
You do not have the required permissions to view the files attached to this post.
Image
Spoiler:
(02:24:09)

Code: Select all

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).

Code: Select all


(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:


Code: Select all

(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.

Code: Select all

(15:42:51) Lanaya: can i suck , . . .

Code: Select all

(13:55:21) ChatBot: 2Pac rolls 1d100 and gets 1.
(13:55:21) ChatBot: haxorico rolls 1d2 and gets 2.
(13:55:27) haxorico: owned?

Code: Select all

GeorgeMots: xplain what happens in SP. Why cant you save?
dast.-:i need play with 2 players

Code: Select all

(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).


Code: Select all

(10:08:02) Bartimaeus: you do know run I youtube channel for my favorite music, right?
User avatar
pirroludo
Junior Member
Posts: 47
Joined: May 20th, 2009, 3:37 pm
Title: ^^ THis A Life^^
Location: brasil

Re: how to add comands for increase stats in maps??

Post by pirroludo »

Thank you my friend, so I'm trying to understand and grasp on the subject I wanted to edit a map to put these commands, I searched the forum and nobody knows how to do this, the map and the world, is a Korean rpg and very good by the way so that the commands are in Korean, and I would like to traduzilos adicionalos or in English if possible.
I am very grateful for your help,
Thank you.
By Pirroludo
User avatar
haxorico
Super Moderator
Posts: 3190
Joined: February 24th, 2009, 1:31 pm
Location: JEW LAND

Re: how to add comands for increase stats in maps??

Post by haxorico »

What is "traduzilos adicionalos"

If you want to add that command to a map...
Open the map using MPQMaster
extract war3map.j file (might be in the scripts folder)
Open the war3map.j file with any text editor
Add the information I specified where I specified. (under globals, endglobals and the locals of function main)
Save the file.
Insert and overide using MPQMaster.

If you want to know the jass code itself, I will be happy to to explain the way it goes.

If I didn't understand you, please specify your request a little bit better.

It doesn't matter if the map is in korean (unless korean maps have their own jass code). This code should work for any map. But I didn't test it...
Image
Spoiler:
(02:24:09)

Code: Select all

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).

Code: Select all


(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:


Code: Select all

(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.

Code: Select all

(15:42:51) Lanaya: can i suck , . . .

Code: Select all

(13:55:21) ChatBot: 2Pac rolls 1d100 and gets 1.
(13:55:21) ChatBot: haxorico rolls 1d2 and gets 2.
(13:55:27) haxorico: owned?

Code: Select all

GeorgeMots: xplain what happens in SP. Why cant you save?
dast.-:i need play with 2 players

Code: Select all

(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).


Code: Select all

(10:08:02) Bartimaeus: you do know run I youtube channel for my favorite music, right?
User avatar
pirroludo
Junior Member
Posts: 47
Joined: May 20th, 2009, 3:37 pm
Title: ^^ THis A Life^^
Location: brasil

Re: how to add comands for increase stats in maps??

Post by pirroludo »

ok I understand, you would add these commands in this map?
You do not have the required permissions to view the files attached to this post.
By Pirroludo
User avatar
pirroludo
Junior Member
Posts: 47
Joined: May 20th, 2009, 3:37 pm
Title: ^^ THis A Life^^
Location: brasil

Re: how to add comands for increase stats in maps??

Post by pirroludo »

any??
By Pirroludo
naturesfury
Forum Spammer
Posts: 610
Joined: March 30th, 2009, 9:02 pm

Re: how to add comands for increase stats in maps??

Post by naturesfury »

does the 5 day bumping rule apply here? o.o
and if this is a request, you gotta make a new thread in map requests with a custom cheat i believe
plus, it's probably better to learn yourself...
User avatar
pirroludo
Junior Member
Posts: 47
Joined: May 20th, 2009, 3:37 pm
Title: ^^ THis A Life^^
Location: brasil

Re: how to add comands for increase stats in maps??

Post by pirroludo »

=/
By Pirroludo