Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Dragdrop ID
Author Message
MuteUme
Apprentice
*

Posts: 3
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Jul 2017
Reputation: 0



Post: #1
Dragdrop ID
Well, im checkin some scroll & potion cases and wondering if u guys have some ideas on how to drag and drop items into books/cases instead of opening them or clickin dialog buttons.
I mean, common scripts usually use a dialog button for adding items once u opened the book/case, like this:

if (<src.targ.baseid>=i_reag_black_pearl)
more1=<tag.reg1>
more2=<src.targ.amount>
tag.reg1=<more1>+<more2>
src.sysmessage Pones <eval(<more2>)> You put black pearl in your case
src.consume <more2> i_reag_black_pearl
DIALOG d_reg_case
return 1
endif

But im tryin to figure out how can i drag&drop (in this case Black pearls) on the book/case in the backpack.

Thanks for helping me.
09-13-2017 12:14 AM
Find all posts by this user Like Post Quote this message in a reply
darksun84
Sir Spamalot
****

Posts: 1,470
Likes Given: 183
Likes Received: 111 in 102 posts
Joined: Mar 2012
Reputation: 31



Post: #2
RE: Dragdrop ID
You can assign the type t_container to the item and using variuos triggers:

ON=@Dclick
You can prevent the container to be opened in the normal way.

ON=@DropOn_Self
You can check what items can be added to the container.

Also containers type have the following properties, see:
http://wiki.spherecommunity.net/index.ph...Containers

The only drawback is that the items inside this container will be still sellable.

The Runebook in Soulless shard was made in this way.
(This post was last modified: 09-13-2017 12:57 AM by darksun84.)
09-13-2017 12:55 AM
Find all posts by this user Like Post Quote this message in a reply
MuteUme
Apprentice
*

Posts: 3
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Jul 2017
Reputation: 0



Post: #3
RE: Dragdrop ID
(09-13-2017 12:55 AM)darksun84 Wrote:  You can assign the type t_container to the item and using variuos triggers:

ON=@Dclick
You can prevent the container to be opened in the normal way.

ON=@DropOn_Self
You can check what items can be added to the container.

Also containers type have the following properties, see:
http://wiki.spherecommunity.net/index.ph...Containers

The only drawback is that the items inside this container will be still sellable.

The Runebook in Soulless shard was made in this way.

Yup, solved it easily. Smile
Dint find the suitable TAG for some reason, thx again buddy ^^
09-13-2017 03:36 AM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)

This forum uses Lukasz Tkacz MyBB addons.