Double click items

smoochy boys on tour

Rawwwr

Dedicated Member
Dedicated Member
Feb 27, 2010
198
1
45
Hi! :)
I was trying to make items that gives you something when you do double click on them, a friend helped me, and he made me this script some time ago (Thanks Josiko! :D).

00default.txt:

[@dobleclick]
#CALL [System\ItemScripts\dobleclick.txt] @dobleclickitems

dobleclick.txt:

[@dobleclickitems]
{
#ACT
SetItemEvent 60 20 @goldbar


[@goldbar]
#IF
Checkitem Goldbar 1
#ACT
TAKE Goldbar 1
Give Gold 998000
break
#ELSEACT
break
}



We tested it some months ago, and it didn't worked, I tried sometimes with different scripts, and it doesn't work too.

Where's the error please? :)
 

Rawwwr

Dedicated Member
Dedicated Member
Feb 27, 2010
198
1
45
Thank you! :D
So... the first number is Stdmode and the second shape allways, right?
 
Upvote 0

twisterdmk

LOMCN Veteran
Veteran
May 13, 2009
759
28
115
USA
[@dobleclick]
#CALL [System\ItemScripts\dobleclick.txt] @dobleclickitems

dobleclick.txt:

[@dobleclickitems]
{
#ACT
SetItemEvent 60 20 @goldbar


[@goldbar]
#IF
Checkitem Goldbar 1
#ACT
TAKE Goldbar 1
Give Gold 998000 <0 if that don't work try backspacing GiveGold
break
#ELSEACT
break
}
 
  • Like
Reactions: Rawwwr
Upvote 0

Rawwwr

Dedicated Member
Dedicated Member
Feb 27, 2010
198
1
45
[@dobleclick]
#CALL [System\ItemScripts\dobleclick.txt] @dobleclickitems

dobleclick.txt:

[@dobleclickitems]
{
#ACT
SetItemEvent 60 20 @goldbar


[@goldbar]
#IF
Checkitem Goldbar 1
#ACT
TAKE Goldbar 1
Give Gold 998000 <0 if that don't work try backspacing GiveGold
break
#ELSEACT
break
}

Thank you! :D
I had sometimes that prob, I never remember if the "give" command goes with a space or without it when it gives items, gold, etc.. x.x

Originally Posted by Rawwwr
Thank you!
So... the first number is Stdmode and the second shape allways, right?
np & yes that's right

Thank you mate! :D
 
Upvote 0

Josiko

LOMCN Veteran
Veteran
Loyal Member
Apr 4, 2010
428
8
44
Spain
STD MODE = Number std mode item .
If have = stdmode u need change shape and input in sql (db items ) and input in script.


Lo siento no he podido estar apartir del sabado estaré mas espero, cualquier duda privi y te lo resuelvo.
 
Upvote 0

mercury71

Dedicated Member
Dedicated Member
Apr 3, 2006
155
3
64
we have done this with loads of items on our server even made invis pots and immort pots, we got working as well for pet scrolls to go on belt window, need a hand shout bud
 
Upvote 0

lina

LOMCN Veteran
Veteran
Loyal Member
Jul 28, 2010
283
5
45
Poland
OMG 00defoult, i was thinkin where could the double click script could have been! Now i cannot even go into mir3 coz of my router.
Does this work for king as well?
and big thanks i needed this post.
 
Upvote 0