Creating items

General talk about editing, cheating, and deprotecting maps.

Moderator: Cheaters

Penguin
Member
Posts: 55
Joined: May 22nd, 2007, 1:12 am

Creating items

Post by Penguin »

How would I create an item at the selected hero's spot, or create an item in the selected hero's inventory? Pictures would be nice.
User avatar
Aero
Forum Staff
Posts: 829
Joined: January 28th, 2007, 8:10 pm
Title: JASS Programmer
Location: Canada

Post by Aero »

call CreateItem('XXXX',x,y)

Where 'XXXX' is item ID
Where x is your unit x coordinate
Where y is your unit y coordinate
User avatar
Xantan
Honorary wc3edit.net Traitor
Posts: 2507
Joined: February 1st, 2007, 4:11 pm
Location: NEVADA

Post by Xantan »

GUI version -
pick every unit in entire map owned by player triggering player and do item create xx(pick item)xx for hero picked unit
User avatar
Aero
Forum Staff
Posts: 829
Joined: January 28th, 2007, 8:10 pm
Title: JASS Programmer
Location: Canada

Post by Aero »

JASS is so much easier -.-
Penguin
Member
Posts: 55
Joined: May 22nd, 2007, 1:12 am

Post by Penguin »

Thanks guys.
Kala-cha
Forum Addict
Posts: 405
Joined: February 17th, 2007, 9:16 pm

Post by Kala-cha »

By the way, if you use Xantan's, (I hate your way >.<), it'll pick every unit owned by you that has an inventory and add an item to it. GUI =
Events:
Player - Player 1 (Red) types a chat message containing -additem as An exact match
Conditions:
(Player 1 (Red) is in cheatgroup) Equal to True
Actions:
Hero - Create (Random level -1 Any Class item-type) and give it to (Picked unit)
(OPT) Actions:
Hero - Create (Chosen Item) and give it to (Picked Unit)

Xantan's way is annoying, especially in Elemental TD.
User avatar
Xantan
Honorary wc3edit.net Traitor
Posts: 2507
Joined: February 1st, 2007, 4:11 pm
Location: NEVADA

Post by Xantan »

my additem picks only heroes, I was just too lazy to explain how to do that here.
Kala-cha
Forum Addict
Posts: 405
Joined: February 17th, 2007, 9:16 pm

Post by Kala-cha »

Yah, well, your way suck with -agi etc. (-lvl, -agi, -str, -int, additem), it picks all my heroes and it looks so obvious that I'm cheating :/
User avatar
Xantan
Honorary wc3edit.net Traitor
Posts: 2507
Joined: February 1st, 2007, 4:11 pm
Location: NEVADA

Post by Xantan »

Kala-cha wrote:Yah, well, your way suck with -agi etc. (-lvl, -agi, -str, -int, additem), it picks all my heroes and it looks so obvious that I'm cheating :/


-modify ftw?