Jump to content
  • 0

drop item script


Question

12 answers to this question

Recommended Posts

Posted

Refer : 

*makeitem <item id>,<amount>,"<map name>",<X>,<Y>;
*makeitem "<item name>",<amount>,"<map name>",<X>,<Y>;

This command will create an item lying around on a specified map in the
specified location.

    itemid - Found in 'db/(pre-)re/item_db.txt'
    amount - Amount you want produced
    map name - The map name
    X - The X coordinate
    Y - The Y coordinate.

This item will still disappear just like any other dropped item. Like
'getitem', it also accepts an 'english name' field from the database and
creates apples if the name isn't found.
If the map name is given as "this", the map the invoking character is on
will be used.
Posted

 

Refer : 

*makeitem <item id>,<amount>,"<map name>",<X>,<Y>;
*makeitem "<item name>",<amount>,"<map name>",<X>,<Y>;

This command will create an item lying around on a specified map in the
specified location.

    itemid - Found in 'db/(pre-)re/item_db.txt'
    amount - Amount you want produced
    map name - The map name
    X - The X coordinate
    Y - The Y coordinate.

This item will still disappear just like any other dropped item. Like
'getitem', it also accepts an 'english name' field from the database and
creates apples if the name isn't found.
If the map name is given as "this", the map the invoking character is on
will be used.

sir thats what im talking about but i nid it to run automatically and drop an item on random coordinates... and also customizable interval of item shower

Posted

Will return 0 if the cell is not passable.

*checkcell ("<map name>",<x>,<y>,<type>);

This command will return 1 or 0, depending on whether the specified cell has
the 'type' flag set or not. There are various types to check, all mimicking
the server's cell_chk enumeration. The types can be found in db/const.txt.

The meaning of the individual types can be confusing, so here's an overview:
- cell_chkwall/water/cliff
these check directly for the 'terrain component' of the specified cell
- cell_chkpass/reach/nopass/noreach
passable = not wall & not cliff, reachable = passable wrt. no-stacking mod
- cell_chknpc/basilica/landprotector/novending/nochat
these check for specific dynamic flags (their name indicates what they do)

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...