Jump to content
  • 0

Possible for loot item?


Question

Posted (edited)

When you loot certain item like 1201 auto announce

if possible how to script? give me example thanks

Problem Solved by cydh

Edited by Zack-

11 answers to this question

Recommended Posts

Posted (edited)

auto map announce when looting the item in the floor

looting the item in the floor?

so how to active? when drop something? when pick up something? when hold something?

Edited by goddameit
Posted

auto map announce when looting the item in the floor

looting the item in the floor?

so how to active? when drop something? when pick up something? when hold something?

when pick up the item have auto map announce

Posted

auto map announce when looting the item in the floor

looting the item in the floor?

so how to active? when drop something? when pick up something? when hold something?

when pick up the item have auto map announce

suggest to edit src

Posted (edited)

will not suggest using script to complete, here is why

1. you have to make a loop event on player to make sure when something change you will know it

2. during the loop event, you have to check is there specify item in your area by using getareadropitem

3. if that specify item is in your area, now check did it disappear after cold time (loop event)

4. if it disappear, now check your inventory and see did you have new item that is that specify item

5. if yes, do announce

-

but in source, you only have to add some new commands in clif_parse_TakeItem (clif.c)

ex :

if( fitem->item_data.nameid == blabla ){ do announce }

Edited by goddameit
Posted (edited)

hmmm.. maybe

1. make the db/item_loot_db.txt

2. every pc_additem and the item is listed on db/item_loot_db.txt, will be announced

Edited by cydh

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...