(Last updated on;
November 10, 2009 11:00 AM)
Taking or giving items can be quite useful, well, at least the giving part. The code gets a bit different here.
This code is for GIVING an item
|
#org $item
|
|
lock
|
|
faceplayer
|
|
message $talk
|
|
$talk 1 = Here, have a present
|
|
giveitem 0x00 0x00
|
|
boxset6
|
|
release
|
|
end
|
In this script, it states "giveitem 0x00 0x00" in this event, the first 0x00,
the 0x(00) would be replaced with the hex number of an item.
The second "0x00", the 0x(00) would be replaced with the number of that item being received
And this code is for TAKING an item.
|
#org $script
|
|
lock
|
|
faceplayer
|
|
message $talk
|
|
$talk 1 = *whispers* haha he'll never notice
|
|
boxset 6
|
|
removeitem 0x01 0x01
|
|
release
|
|
end
|
[back]