multicheat jass trigger pack

General talk about editing, cheating, and deprotecting maps.

Moderator: Cheaters

User avatar
Dekar
Forum Drunk
Posts: 2899
Joined: January 17th, 2007, 4:22 pm
Has thanked: 1 time
Been thanked: 1 time

Post by Dekar »

not exactly wrong... just a code for a item which doesn't exist...
so if you're tryin to get the item you like to and try sum codes
and there is sum code that doesn't exist the game crashes -.-
but i'm not 100% sure bout this!
Don't pm me with Warcraft questions, this is a forum so just make a post!
In the world of thinking we are all immigrants. -Robert Nozick
User avatar
Aero
Forum Staff
Posts: 829
Joined: January 28th, 2007, 8:10 pm
Title: JASS Programmer
Location: Canada

Post by Aero »

Item cheats are custom and map specific
If you want a specific item to drop you need to use the following:

call CreateItem('xxxx',x,y)

Replace 'xxxx' with the ItemType Id
If an invalid item type if used the game crashes

For Dekar's -additem function, it only can "random" items that DO NOT have a custom ItemType Id (Can only random previously existing edited wc3 items not custom ones)
User avatar
Xantan
Honorary wc3edit.net Traitor
Posts: 2507
Joined: February 1st, 2007, 4:11 pm
Location: NEVADA

Post by Xantan »

Aero wrote:Item cheats are custom and map specific
If you want a specific item to drop you need to use the following:

call CreateItem('xxxx',x,y)

Replace 'xxxx' with the ItemType Id
If an invalid item type if used the game crashes

For Dekar's -additem function, it only can "random" items that DO NOT have a custom ItemType Id (Can only random previously existing edited wc3 items not custom ones)
Its quite easy to random items that are custom.

Check this.
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Entered chat string) Equal to -additem) or ((Entered chat string) Equal to -add item)
Then - Actions
Unit Group - Pick every unit in (Units owned by (Triggering player) matching (((Unit-type of (Matching unit)) is A Hero) Equal to True)) and do (Hero - Create (Random level (Random integer number between 1 and 10) Any Class item-type) and give it to (Picked unit))
Else - Actions

That will get any item in the game =]
User avatar
trb92
Senior Member
Posts: 132
Joined: February 20th, 2007, 8:40 pm
Title: Random Noob
Location: Canada!!!

Post by trb92 »

Check this.
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Entered chat string) Equal to -additem) or ((Entered chat string) Equal to -add item)
Then - Actions
Unit Group - Pick every unit in (Units owned by (Triggering player) matching (((Unit-type of (Matching unit)) is A Hero) Equal to True)) and do (Hero - Create (Random level (Random integer number between 1 and 10) Any Class item-type) and give it to (Picked unit))
Else - Actions
Instead of using the random integer thing, why not just put -1 in the field? If that box is -1 it will do any level.
If you knew a woman who was pregnant, who had 8 kids already,
three who were deaf, two who were blind, one mentally retarded, and she had syphilis; would you recommend that she have an abortion?

Answer:
Spoiler:
If you said yes, you just killed Beethoven...
User avatar
Xantan
Honorary wc3edit.net Traitor
Posts: 2507
Joined: February 1st, 2007, 4:11 pm
Location: NEVADA

Post by Xantan »

trb92 wrote:
Check this.
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Entered chat string) Equal to -additem) or ((Entered chat string) Equal to -add item)
Then - Actions
Unit Group - Pick every unit in (Units owned by (Triggering player) matching (((Unit-type of (Matching unit)) is A Hero) Equal to True)) and do (Hero - Create (Random level (Random integer number between 1 and 10) Any Class item-type) and give it to (Picked unit))
Else - Actions
Instead of using the random integer thing, why not just put -1 in the field? If that box is -1 it will do any level.
lol, genius.
User avatar
trb92
Senior Member
Posts: 132
Joined: February 20th, 2007, 8:40 pm
Title: Random Noob
Location: Canada!!!

Post by trb92 »

If you want to call it genius, go ahead. However, i call it "Reading".
Worldeditor wrote:Use -1 for any level.
If you knew a woman who was pregnant, who had 8 kids already,
three who were deaf, two who were blind, one mentally retarded, and she had syphilis; would you recommend that she have an abortion?

Answer:
Spoiler:
If you said yes, you just killed Beethoven...
User avatar
Dekar
Forum Drunk
Posts: 2899
Joined: January 17th, 2007, 4:22 pm
Has thanked: 1 time
Been thanked: 1 time

Post by Dekar »

i think this is exactly what i did!
Don't pm me with Warcraft questions, this is a forum so just make a post!
In the world of thinking we are all immigrants. -Robert Nozick
User avatar
Aero
Forum Staff
Posts: 829
Joined: January 28th, 2007, 8:10 pm
Title: JASS Programmer
Location: Canada

Post by Aero »

That still will only random Non-custom ID items
Correct me if I'm wrong after you test it and provide screenshots
User avatar
Xantan
Honorary wc3edit.net Traitor
Posts: 2507
Joined: February 1st, 2007, 4:11 pm
Location: NEVADA

Post by Xantan »

Well, this is kind of silly to have to post proof, but ok, I had my additem command as follows:
http://img177.imageshack.us/img177/6295/proof3ff9.jpg

And, I made a custom item named Xantan as follows:
http://img174.imageshack.us/img174/4064/proof2qx0.jpg

And, typing -additem ingame I got Xantan over time:
http://img177.imageshack.us/img177/2024/proof1wq3.jpg

=/
User avatar
Aero
Forum Staff
Posts: 829
Joined: January 28th, 2007, 8:10 pm
Title: JASS Programmer
Location: Canada

Post by Aero »

Huzzah, thanks Xantan--my claim saved me the trouble of testing it myself

Perhaps when testing Dekar's -additem I didn't do it enough to acquire a custom item--in any case, I'll figure it out later

We now know in fact that this CAN spawn custom items :D

+1 to book of facts