kimameixede
-
Posts
131 -
Joined
-
Last visited
-
Days Won
1 -
Feedback
0%
Content Type
Forums
Store
Third Party - Providers Directory
Feature Plan
Release Notes
Docs
Events
Posts posted by kimameixede
-
-
Spoiler
quest automex begin
state start begin
when letter with pc . is_gm ( ) begin
send_letter ( "GM Auto Notice" )
end
when button or info begin
a = select ( "Enable Auto Message" , "Disable Auto Message" , "Set Auto Message" , "Set time" , "Close" )
if a == 1 then
if game . get_event_flag ( "auto" ) >= 1 then
say ( "Already active" )
else
say ( "Auto Message On" )
game . set_event_flag ( "auto" , 1 )
server_timer ( "mex" , t )
end
elseif a == 2 then
say ( "Auto Message Off" )
game . set_event_flag ( "auto" , 0 )
clear_server_timer ( "mex" )
clear_server_timer ( "mex1" )
elseif a == 3 then
say ( "Enter your message" )
s = input ( )
say ( "Other Message:" )
b = input ( )
say ( "Other Message:" )
c = input ( )
elseif a == 4 then
say ( "Auto post time:" )
m = tonumber(input())
if m == nil then
say ( "You must enter a number" )
elseif m < 1 then
say ( "You must enter a positive number" )
else
h = select ( "Seconds" , "Minutes" , "Hours" )
if h == 1 then
t = m
elseif h == 2 then
t = tonumber(m * 60)
elseif h == 3 then
t = tonumber(m * 60 * 60)
end
end
end
end
when mex.server_timer begin
if game.get_event_flag ( "auto" ) == 1 then
notice_all ( ""..s )
if b != "" then
notice_all ( ""..b )
end
if c != "" then
notice_all ( ""..c )
end
server_timer ( "mex1" , t )
else
end
end
when mex1.server_timer begin
if game . get_event_flag ( "auto" ) == 1 then
notice_all ( ""..s )
if b != "" then
notice_all ( ""..b )
end
if c != "" then
notice_all ( ""..c )
end
server_timer ( "mex" , t )
else
end
end
end
endCredits to: Superisi
-
why you have 1 tab on start?
-
int pc_get_empty_inventory_size(lua_State* L) { LPCHARACTER pChar = CQuestManager::instance().GetCurrentCharacterPtr(); if (lua_isnumber(L, 1) == false){ lua_pushboolean(L, false); return 1; } int size = (int)lua_tonumber(L, 1); if (pChar != NULL) { int iEmptyCell = pChar->GetEmptyInventory(size); if (-1 == iEmptyCell) { lua_pushboolean(L, false); return 1; } lua_pushboolean(L, true); } else { lua_pushboolean(L, false); } return 1; }
credits: DragonSlayer
- 1
-
-
use oficial quest.
you can find there on metin2dev
-
this do what exacly?
-
its free on internet. why you buy? o.O
-
you have all libs on click side?
-
its easy.
just check the line error on demirvidgame.lua
-
you make special_group?
-
2 hours ago, z35 said:
Just make your map bigger. Make a bigger void between the walls and the end-side of the map.
YEs
-
Some parts of map are not closing. you can see through the floor. try to fix in world editor
-
You pay 20 Euros to 34k files fixed?
Make your won files
Good look.
-
I think you did not understand or i am so noob. just wanted the server sends to a variable to the client so that it shows a window.
-
Hello guys.
What I wanted was that when you arrive at 00:00 the server sent a variable to the client that would be a open window (sorry i use google translate)
In Server i have something like this:
function settings()
local time = os.date ("%H")
local number = 1
if time >= "21" then
cmdchat("command_name "..number)
notice_all("Can open python window")
elseif time >= "23" then
notice_all("Dont Start")
elseif time >= "24" then
notice_all("Dont Start 1")
end
end------------------------------------------------------------------
In Client i have something like this:
In game:
"command_name" : self.command_name_python,
def command_name_python(self, number):
if not self.teste:
import uitestewindow
self.teste = uitestewindow.moon()
self.teste.BuildWindow(number)----------------------------------------------------------------------
in uitestewindow i have:
def BuildWindow(self, number):
self.number = number
if self.number == 1:
self.Board = ui.BoardWithTitleBar()
self.Board.SetSize(80, 66)
self.Board.SetPosition(1143,70)
self.Board.SetTitleName('Bónus')
self.Board.AddFlag('float')
self.Board.Show()
self.Button1 = ui.Button()
self.Button1 .SetParent(self.Board)
self.Button1 .SetPosition(19, 31)
self.Button1 .SetUpVisual("d:/ymir work/ui/bonus_noturno/lua1.tga")
self.Button1 .SetOverVisual("d:/ymir work/ui/bonus_noturno/lua2.tga")
self.Button1 .SetDownVisual("d:/ymir work/ui/bonus_noturno/lua3.tga")
self.Button1 .SetText("")
self.Button1 .SetEvent(self.moon_func)
self.Button1 .Show()what i am doing wrong?
-
return sub_set = 1 in where you want to return.
-
Hello!
i need something in quest/lua or in c++ to check if the space in safebox have item.
if have put the new item in the next free space.
i try something like this:
local pos = mysql_query("SELECT * FROM player.item WHERE window='SAFEBOX' and owner_id='"..pc.get_account_id().."' ORDER BY pos ASC")
local i = 0
if pos.pos!= nil then
repeat
i = i + 1
until (tonumber(pos.pos))!=(i-1)
pos = i-1
else
pos = 0
endmysql_query("INSERT INTO player.item (owner_id,window,pos,count,vnum) VALUES ('"..(pc.get_account_id()).."', 'SAFEBOX', '"..(pos).."', '1', '"..(ITEM).."');")
but unfortunately dont work.
someone can give help?
sorry my english is not the best
-
Hello!
i need something in quest/lua to check if the space in safebox have item.
if have put the new item in the next free space.
i try something like this:
local pos = mysql_query("SELECT * FROM player.item WHERE window='SAFEBOX' and owner_id='"..pc.get_account_id().."' ORDER BY pos ASC")
local i = 0
if pos.pos!= nil then
repeat
i = i + 1
until (tonumber(pos.pos))!=(i-1)
pos = i-1
else
pos = 0
endbut unfortuly dont work.
someone can give help?
-
i can´t see the video. can you give me another link?
tankx
-
999.999.999 its not so mutch?
-
why you create a lot of topics?
-
im wating to
-
In the the ftp folder map have a file like Town.txt.
You have to define the coordenates.
-
when login with pc.get_map_index() == x begin
spawn_mob(monster, x,y)
end
i think this work
Inventory problem
in Community Support - Questions & Answers
Posted
check the inventory slots.