Start Chat With Item?
There's got to be a way to start a chat with an Item, like in a classic D&D session where your sword talks to you. Is there an Item already in game that I can see how it's done and if not, how would I go about doing this?
|
EVENT_ITEM_CLICK in an item quest script, would be my first thought.
|
Ok, I think I have the start of it. In case anyone else needs this.
create a script in quests/global/items/script_5000.pl for example #the itemid is the number of your item you're trying to click. sub EVENT_ITEM_CLICK { if($itemid == 147498 ){ $client->Message(15, "I hope you can see this!"); } } In Peq , On the Edit Item page there is a Script File ID. This would be 5000 as it ignores the script_ portion of the filename. |
Ok, the following does the following, but does not 'listen' to a reply from the client. When item 147498 is clicked, its prints out "Pick True or False 'True' or 'False'.
clicking either True or False will have your character say says 'True' says 'False' What am I missing to have the elsif listen to the True or False? Can it be done from an item? Code:
sub EVENT_ITEM_CLICK { |
Quote:
Code:
# quest::saylink("#pick true",1,"True"); |
Perfect, thank you!
|
All times are GMT -4. The time now is 12:22 PM. |
Powered by vBulletin®, Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.