Action WardRobe ~ Veery GooD Sistemy

president vankk

Web Developer & AuraOT Owner
Joined
Jul 10, 2009
Messages
5,717
Best answers
8
Reaction score
285
Code:
Standard Post:
Author: Beon:thumbup:
Tested: TFS 0.3.5:wub:
Version: 8.5x:thumbup:
Comment: This is a script very cool and real ... and so you go in the closet and use and it will open your clothes:blink: /CODE]

Go to data / action / action.xml and add this:
[CODE]<action uniqueid="5600" event="script" value="Wardrobe.lua"/>
Then go to data / action / script and there you create a file. WardRobe.lua moon called ~ and puts it in the file

Code:
function onUse(cid, item, frompos, item2, topos)
if item.uid == 1000 then
doPlayerSendOutfitWindow(cid)
end
end

REP ++ :p':thumbup:
 
Last edited:

Shawak

Intermediate OT User
Joined
Sep 11, 2008
Messages
1,976
Best answers
2
Reaction score
101
Location
Germany
Code:
[COLOR="YellowGreen"]function[COLOR="Black"] onUs[/COLOR]e(cid, item, frompos, item2, topos)
if item.u[COLOR="Black"]id[/COLOR] == 1000 then
doP[COLOR="Black"]layerSend[/COLOR]OutfitWindow(cid)
end
end[/COLOR]
Nice, but can be shorten:
Lua:
function onUse(cid, item, frompos, item2, topos)
	return item.uid == 1000 and doPlayerSendOutfitWindow(cid)
end
 
OP
president vankk

president vankk

Web Developer & AuraOT Owner
Joined
Jul 10, 2009
Messages
5,717
Best answers
8
Reaction score
285
@Shawak


Shawak, already put the script on the topic.
 

cbrm

Top Class brunet scripter
Staff member
Global Moderator
Joined
Jan 6, 2009
Messages
6,585
Best answers
3
Reaction score
852
Location
Caribbean Sea
haha funny one
 

babalow

Nobody o/
Joined
Nov 7, 2007
Messages
392
Best answers
0
Reaction score
0
Location
Brazil
I think it wont work (loading > uniqueid="5600" and checking for item.uid == 1000)
and since u're using uid u dont need to check it .. so u can just..
return doPlayerSendOutfitWindow(cid)
 

Zerak

http://otstatus.com/
Joined
Oct 4, 2009
Messages
1,126
Best answers
0
Reaction score
47
Location
Sweden
hahaha rlly nice same as runescape "when u have own house" but in tibia == ROOOX!
 

chojrak

Banned User
Joined
Oct 25, 2008
Messages
5,832
Best answers
2
Reaction score
158
return item.uid == 1000 and doPlayerSendOutfitWindow(cid)
Congrats retards, now close your browsers.

For all newbies: If you have other Item UID than 1000 you should change it in script. But why not just:
Code:
doPlayerSendOutfitWindow(cid)
return true
o_O?
 

Shawak

Intermediate OT User
Joined
Sep 11, 2008
Messages
1,976
Best answers
2
Reaction score
101
Location
Germany
Congrats retards, now close your browsers.

For all newbies: If you have other Item UID than 1000 you should change it in script. But why not just:
Code:
doPlayerSendOutfitWindow(cid)
return true
o_O?
becuase
Code:
return doPlayerSendOutfitWindow(cid)
is shorter. :D :D :D

// Idk why all write if item.uid == ... ;/
 

chojrak

Banned User
Joined
Oct 25, 2008
Messages
5,832
Best answers
2
Reaction score
158
becuase
Code:
return doPlayerSendOutfitWindow(cid)
is shorter. :D :D :D

// Idk why all write if item.uid == ... ;/
Code:
function onUse(cid, item, frompos, item2, topos) doPlayerSendOutfitWindow(cid) end
@noobak:
Shorter -.-'
 

Shawak

Intermediate OT User
Joined
Sep 11, 2008
Messages
1,976
Best answers
2
Reaction score
101
Location
Germany
@Up, OK:
Lua:
function onUse(cid) doPlayerSendOutfitWindow(cid) end
 

chojrak

Banned User
Joined
Oct 25, 2008
Messages
5,832
Best answers
2
Reaction score
158
It was sarcasm, but ok you are still noob.
 
Top