LuisPro
World War <3
- Joined
- May 10, 2009
- Messages
- 425
- Solutions
- 1
- Reaction score
- 53
https://github.com/TwistedScorpio/OTHire/blob/master/source/game.cpp#L3318-L3326
This is outfit window show up code.
I want to make: if player click Set Outfit, dont show up outfit window just run this function from changeoutfit.lua
It can be done or it have to be hardcoded?
If it have to be hardcoded can someone show me how its should looks like in src?
This is outfit window show up code.
I want to make: if player click Set Outfit, dont show up outfit window just run this function from changeoutfit.lua
Code:
function onUse(cid, item, frompos, item2, topos)
if getPlayerAccountId(cid) == 1 and getPlayerVocation(cid) == 8 then
doCreatureChangeOutfit(cid, {lookType = 142, lookHead = 116, lookBody = 87, lookLegs = 87, lookFeet = 0})
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE,"Your sex has been changed")
end
end
It can be done or it have to be hardcoded?
If it have to be hardcoded can someone show me how its should looks like in src?