Jump to content

OnPutOnEquip and OnPutOffEquip special label


Cydh

Recommended Posts


  • Group:  Developer
  • Topic Count:  153
  • Topics Per Day:  0.04
  • Content Count:  2285
  • Reputation:   745
  • Joined:  06/16/12
  • Last Seen:  

LOL, maybe the label names are not cool enough, but, they're working on my test. :P


 
Requested on: Request for PCOnEquipEvent: & PCOnUnEquipEvent:
 

do you want to use it like another MMORPGs that have quest 'to use equip' then 'put off the equip', and check which equipment is equipped and put off..?

 
yes, can you do it for me please?

I don't know this is usefull or not, there is a share before or not, I don't know.
 

How it's working?

post-5421-0-01106000-1365898801_thumb.jpgpost-5421-0-31432700-1365898822_thumb.jpgpost-5421-0-31718700-1365898842_thumb.jpgpost-5421-0-25958300-1365898863_thumb.jpg


Samples
OnPutOnEquip: test-onputonequip.txt

-    script    PutOnEquip    -1,{
    OnPutOnEquip:
        message strcharinfo(0),"You put on "+getitemname(puton)+"(ID: "+puton+")";
    end;
}

OnPutOffEquip: test-onputoffequip.txt

-    script    PutOffEquip    -1,{
    OnPutOffEquip:
        message strcharinfo(0),"You put on "+getitemname(putoff)+"(ID: "+putoff+")";
    end;
}

 
Download

 

*I'm really don't know if this is useful or not. LOL

but at least, we will know what item that is put on/off by player. :P*

Edited by Cydh
  • Upvote 2
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  209
  • Topics Per Day:  0.05
  • Content Count:  892
  • Reputation:   27
  • Joined:  12/09/11
  • Last Seen:  

how about if he equipped a certain item? like if he equip LKH? he will get a bonus? is that possible here?

Link to comment
Share on other sites


  • Group:  Developer
  • Topic Count:  153
  • Topics Per Day:  0.04
  • Content Count:  2285
  • Reputation:   745
  • Joined:  06/16/12
  • Last Seen:  

how about if he equipped a certain item? like if he equip LKH? he will get a bonus? is that possible here?

you can use OnEquip Script on item_db, right? edit the LKH script. xD

may you try it? haha

 

actually, I don't really know this is usefull or not. LOL

 

*I just realized, if I make a quest that ask player to use certain item, I can edit the item_db on { OnEquip Script }. LOL*

Edited by Cydh
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  209
  • Topics Per Day:  0.05
  • Content Count:  892
  • Reputation:   27
  • Joined:  12/09/11
  • Last Seen:  

how about if he equipped a certain item? like if he equip LKH? he will get a bonus? is that possible here?

you can use OnEquip Script on item_db, right? edit the LKH script. xD

may you try it? haha

 

actually, I don't really know this is usefull or not. LOL

 

*I just realized, if I make a quest that ask player to use certain item, I can edit the item_db on { OnEquip Script }. LOL*

aahaha

 

Link to comment
Share on other sites


  • Group:  Developer
  • Topic Count:  153
  • Topics Per Day:  0.04
  • Content Count:  2285
  • Reputation:   745
  • Joined:  06/16/12
  • Last Seen:  

update rev.1, wrong line placement that won't show the actual item_id that put on/off

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  39
  • Topics Per Day:  0.01
  • Content Count:  175
  • Reputation:   7
  • Joined:  09/13/12
  • Last Seen:  

sry for asking this but what exactly does this src do??? please enlighten me  and other noobs like me :)

Link to comment
Share on other sites


  • Group:  Developer
  • Topic Count:  153
  • Topics Per Day:  0.04
  • Content Count:  2285
  • Reputation:   745
  • Joined:  06/16/12
  • Last Seen:  

sry for asking this but what exactly does this src do??? please enlighten me  and other noobs like me :)

 

 

Uploaded screenshots "How's it working"

 

Edited by Cydh
Link to comment
Share on other sites

Join the conversation

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

Guest
Reply to this topic...

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

×
×
  • Create New...