Curiosity (scissors related)

A place for The Mana World players to discuss game-related topics outside the scope of development including guilds, player interactions, game meta and more.


Post Reply
User avatar
Piateluca
Novice
Novice
Posts: 190
Joined: 19 May 2011, 01:50

Curiosity (scissors related)

Post by Piateluca »

Why after using 1 it dissapears from inventory??

(also happens with Purification potion if you use it in the wrong map)


I know is not bugs, im just curious if there is a reason for that to happen :oops: :oops: :oops:
User avatar
Nard
Knight
Knight
Posts: 1113
Joined: 27 Jun 2010, 12:45
Location: France, near Paris

Re: Curiosity (scissors related)

Post by Nard »

it is normal, they reappear when you change map.
You can also notice that towels disappear and reappear too after using them :)
"The language of everyday life is clogged with sentiment, and the science of human nature has not advanced so far that we can describe individual sentiment in a clear way." Lancelot Hogben, Mathematics for the Million.
“There are two motives for reading a book; one, that you enjoy it; the other, that you can boast about it.” Bertrand Russell, Conquest of Happiness.
"If you optimize everything, you will always be unhappy." Donald Knuth.
User avatar
Jenalya
TMW Adviser
TMW Adviser
Posts: 717
Joined: 22 Sep 2010, 19:28

Re: Curiosity (scissors related)

Post by Jenalya »

Items that can be used are consumed when using them. The scripts for items like the scissors or purification potion give you back a new item (see the getitem command).

Code: Select all

function|script|useScissors|{
    if (rand(3))
        goto L_Change;
    message strcharinfo(0), "Whoops!";
    itemheal -20 - rand(Hp >> 1), 0;
    getitem "Scissors", 1;
    end;

L_Change:
    setlook LOOK_HAIR_STYLE, rand(20);
    getitem "Scissors", 1;
    end;
}

Code: Select all

function|script|usePurificationPotion|{
    if (isat("011-1.gat", 88,67))
        goto L_Wyara_Pond;

L_NoUse:
    message strcharinfo(0), "You don't know what to do with this.";
    getitem "PurificationPotion", 1;
    return;

L_Wyara_Pond:
[...]
You can find the scripts here: https://gitorious.org/tmw/tmwa-server-d ... /npc/items
User avatar
Piateluca
Novice
Novice
Posts: 190
Joined: 19 May 2011, 01:50

Re: Curiosity (scissors related)

Post by Piateluca »

thanks to both
Post Reply