-
Posts
408 -
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 Traceur3RUN
-
-
Hello, someone can write for me one new function? i mean mob.get_name from client not from serverside name.
thanks
-
bump, GF arleady have done it, and load it from locale/
-
13 godzin temu, [RaffaeL] napisał:
Even if you use q.done() in your quest?
I mean:
quest test begin state start begin when 1231.chat."test" with pc.getqf("test") == 0 begin pc.setqf("test",1) q.done() end end end
yes, still the same problem.
-
21 minut temu, metin2team napisał:
check your syserr/syslog because it has something to do with your player.quest table either crashed or corrupted.
sysser is clean
syslog when i click on npc i got this
Oct 25 11:28:52 :: OnClick Stable Man[vnum 20349 ServerUniqueID 14621, pid 0] by Tester
maybe mainline_released have bug with this function in source?
i can without problem use it
if pc.getqf("test") == 0 then
--todo
elseif pc.getqf("test") == 1 then
--todo
end
but i can't use it here:
when 1231.chat."test" with pc.getqf("test") == 0 begin
because always return null
i think i can fix syslog return pid 0
by change this:
sys_log(0, "OnClick %s[vnum %d ServerUniqueID %d, pid %d] by %s", GetName(), GetRaceNum(), vid, GetPlayerID(), pkChrCauser->GetName()); change to this: sys_log(0, "OnClick %s[vnum %d ServerUniqueID %d, pid %d] by %s", GetName(), GetRaceNum(), vid, ch->GetPlayerID(), pkChrCauser->GetName());
but this is nothing to quest function.
-
3 minuty temu, Shogun napisał:
It's cached, if you want to change it on the database, you will have to log off the character first, and possibly wait some minutes as well. Or restart the server.
you wrong understand me...
1.click on test chat-> it send to database "test" value 1.
and dissapear chat."test"
but if you change character or logout or server restart it will be always showed because allways pc.getqf("test") will return null (0) but on database you have 1
-
Hello, i have a problem with quest....
example my quest:
quest test begin state start begin when 1231.chat."test" with pc.getqf("test") == 0 begin pc.setqf("test",1) end end end
when you change character etc
and you have this on database "test" == 1
but in game you still see chat "test"
- 1
-
Anyone know and can share it?
-
Hello, someone can give me the NEW STRUCTURE FOR MOB_PROTO and ITEM_PROTO? with new values
-
-
5 minut temu, ragem0re napisał:
Just look for an existing part in your source code.
so you mean like this:
int pc_set_test(lua_State* L){ char szQuery[QUERY_MAX_LEN]; if(!lua_isstring(L,1)){ return 0; } LPCHARACTER ch = CQuestManager::instance().GetCurrentCharacterPtr(); snprintf(szQuery,sizeof(szQuery),"update account%s set test = '%s' where id = '%d'",get_table_postfix(),lua_tostring(L,1), ch->GetAID()); //ch->GetAID() = get account id std::auto_ptr<SQLMsg> pmsg(DBManager::instance().DirectQuery(szQuery)); if(pmsg->Get()->uiInsertID == 0){ return 0; } return 1; }
is correct?
i think this is
LPCHARACTER ch = CQuestManager::instance().GetCurrentCharacterPtr(); // = current character playing
btw, how about use mysql_query in lua?
-
15 minut temu, ManiacRobert napisał:
oh, i missed it but, i still need example to MySQL part,
insert, update, select
-
Hello, i ask now how i can use MySQL
insert/update/select from c++ and lua.
can you post example how i can use it?
i ask there for example how i can send packet fromgame->pythongame->client binarygame->client binary->pythonclient binary->pythonclient binary->gameclient binary->game and pythonget values like from MySQL like[player->gold] and send it to client and receivebinary/and or pythonif (gold >= 0){//todo}can someone make a tutorial or show under example code?i think it will be helpfull not only for me but for all people to understand how it work. thanks! -
how work it and how to use it?
-
Dnia 16.10.2018 o 11:44, .T4Ump napisał:
If you have problem pm me, im author all of them tutorials yang limit, because i shared it.
guy, don't use Bigint 255 just Bigint 20
long long = 9,223,372,036,854,775,807 = 19 lenght
unsgned long long = 18,446,744,073,709,551,615 = 20 lenght
-
can someone fix this bug?
when you have like
something/something/something
then this doesnt work, because dont create folder with lz
only work with
pack/
but dont work if you have
lib/lib/
-
Hello, someone know how to change text color of Yang?
i mean when i got from monster yang = 1 then color = white Yang
monster yang = 100 or more then color blue
and also will be awesome if someone will add show value of droped yang like:
8 Yang
22 Yang
its possible do via python? or only c++ can someone do this?
-
17 godzin temu, blackList napisał:
you have to write
import locale as localeinfo
hahahaha nice kidding.
import localeinfo or import locale as localeinfo is the same ...........
- 2
-
Hello, i do all the same as from this topic :
but when i try run metin2client i got this error:
i rename locale.py to localeinfo.py
and change import locale to import localeinfo
but now i got this:
when i change all locale to localeinfo and locale. to localeinfo.
i got this.
can someone help to fix this issue? or give part of compatible root with python 2.7
-
2 godziny temu, Sebyca1911 napisał:
Hi, can give me someone a tutorial for change yang limit please?
just change int to long long int, but you need first python 2.7 or higher
-
any update?
doesn't work to .txt
-
-
-
-
YangLimit
in Community Support - Questions & Answers
Posted
Your code is bugged. When you learn book. It givr you 90x level