• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

want mod to execute talkaction

beenii

Well-Known Member
Joined
Jul 26, 2010
Messages
580
Solutions
1
Reaction score
57
hi, helpme pls. want button to execute

/buy and text field to put "armor"

talkaction: /buy armor

click on icon, open text field, put text and press OK. or Cancel.
 
If posible add small img above text field
 
You need to use the opCodes, use sendExtendedOpCode and catch it on the server, then playerSay("/buy armor")
 
You can do it without sending opcodes
Code:
g_game.talk('/buy armor')
 
i can't know nothing ot client. please helmet create script, if you know i create for you any script on tibia
I dont need you to create any script for me, as i can do them for my own. You got the answer about how to make it, use the line
Code:
g_game.talk('/buy armor')
to perform that talkaction
 
i dont know how use. and need space for input text. example /buy (space text on client for input, armor or legs etc.)
 
You have to use inside a module where you will make the talkation to execute. And yes, it have the space, cant you read the command?
 
Code:
function buyArmor()
g_game.talk('/buy armor')
end

In module
Code:
@onClick: modules.[your module name ex. game_shop].buyArmor()

You should check how some functions work, for example toggle function or learn some lua?
 
Back
Top