-
Posts
84 -
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 Evor
-
-
Try that:
quest regenbogen begin state start begin when 50512.use begin local job_name = { [0] = {"Arahan","Partisan"}, [1] = {"Ninja","Archer"}, [2] = {"Black Magic","Mirage"}, [3] = {"Lighting","Dragon"}, } local skill_index = { [0] = { [1] = {1,2,3,4,5}, [2] = {16,17,18,19,20}, }, [1] = { [1] = {31,32,33,34,35}, [2] = {46,47,48,49,50}, }, [2] = { [1] = {76,77,78,79,80,81}, [2] = {61,62,63,64,65,66}, }, [3] = { [1] = {106,107,108,109,110,111}, [2] = {91,92,93,94,95,96}, }, } say_title("Rainbow Stone") say("") say("Choose your class!") local a = select(job_name[pc.get_job()][1], job_name[pc.get_job()][2], "Cancel") if tonumber(a) != 3 or tonumber(a) != 0 then return else say_title("Your skillpath was changed succesfully!") pc.set_skill_group(tonumber(a)) for i=1, table.getn(skill_index[pc.get_job()][tonumber(a)]) do pc.set_skill_level(skill_index[pc.get_job()][tonumber(a)][i],59) end item.remove() say("Now, your skills are on the Perfect Master Level!") say("Good luck!") end end end end
-
If u want to, u can use IMER's lib instead to restore old protos functionality.
-
Wait, you compiled something which is WIN-ONLY using gcc in Unix system?
-
Okey, but how we can even think about auction?,
As far as i'm concerned in this .py we don't have ANY function which will connect into the server, or i'm wrong and blind. -
There is a mistake [1] = {"Ninja","Archer","Close",},
it should be without a comma like:quest regenbogen begin state start begin when 50512.use begin local data = { [0] = { [1] = {1,2,3,4,5}, [2] = {16,17,18,19,20}, }, [1] = { [1] = {31,32,33,34,35}, [2] = {46,47,48,49,50}, }, [2] = { [1] = {76,77,78,79,80,81}, [2] = {61,62,63,64,65,66}, }, [3] = { [1] = {106,107,108,109,110,111}, [2] = {91,92,93,94,95,96}, }, ["classNames"] = { [0] = {"Arahan","Partisan","Close"}, [1] = {"Ninja","Archer","Close"}, -- there was no needed comma [2] = {"Black Magic","Mirage","Close"}, [3] = {"Lighting","Dragon","Close"}, }, } say_title("Rainbow Stone:") say("") -- say("Choose your class") local s = select_table(data["classNames"][pc.get_job()]) if(s >= table.getn(data["classNames"][pc.get_job()])) then return end pc.set_skill_group(s) for i = 1,table.getn(data[pc.get_job()][s]),1 do pc.set_skill_level(data[pc.get_job()][s][i],59) end pc.remove_item(50512,1) say_yellow("Your skills are now perfect.. ") end end end
Hope it works!
- 1
-
So i have a question. How can i approach this task. I want to reject all conections wich are for more than 3 seconds synchronizing? Or these connections which are lagging for more than 15sec?
-
Vanilla, did u upgrade the boost version?
Really nice seeing so huge work.
Good luck! -
Maybe source code too?
Thanks in advance.
PS. What do u mean by saying "never kick to login"? Packets error or sequence? -
Thank u Rumor!
-
Vanilla, you would save mu Life if u posted what u target, which was causing certain error. It would really help developing that core. I remember that mainline get about 1k warnings which most od them have performence target, but u just said that some generates crashes. Will u find some time and do a quick list with this errors?
-
Type3 and 4 it's just the matter of server. You shoul use python unpacker instead.
-
Instead of giving ready binary, can u said what was causing the error?
- 1
-
Hm for me windows linkers don't seem to work, but in fact i use only one channel so it isn't so problematical.
-
Can sb send me install.sh to pastebin.com?
Much appreciated.
-
Instead of locale and data in every folder with channel, still it is much more comfortable than freebsd in virtualbox. Personally i use mysql from xampp server instead of mssql too.
It would be nice to make such a debug pannel, considering live syserr and verbose mode and/or mysql managment. It should contain all tools which help with developing metin2.
-
-
It would be really usefull. If u want some testers i'm on it;)
-
Yea. Game is triggering hit properly, but quest has some problems with reading it. I exactly do as penger suggest, but no such luck either.I think you have to put your code into this function in battle.cpp:
int battle_melee_attack(LPCHARACTER ch, LPCHARACTER victim)
Try it. -
Oh okey. Have to find another way ;p (maybe do in the src directly)
-
-
Hello.
I want to write the new trigger function called "hit".I was basically looking at "kill" triggering, but i place
quest::CQuestManager::instance().Hit(pkAttacker->GetPlayerID(), pkVictim->GetRaceNum());
in battle.cpp.
Also i write some sys_log information to trigger when the function is executed etc.Everything seems to be same as kill, but
when kill begin - works fine
when hit begin - doesn't work ;/
So my code:
QuestManager.cppvoid CQuestManager::Hit(unsigned int pc, unsigned int npc){ PC * pPC; sys_log(0, "CQuestManager::HIT QUEST_HIT_EVENT (pc=%d, npc=%d)", pc, npc); if ((pPC = GetPC(pc))){ if (!CheckQuestLoaded(pPC)) return; m_mapNPC[npc].OnHit(*pPC); } else sys_err("QUEST: no such pc id : %d", pc); }
QuestNpc.cpp
bool NPC::OnHit(PC& pc) { sys_log(0,"NPC::OnHit QUEST_HIT_EVENT PC: %d",pc); if (m_vnum) { //PROF_UNIT puOnKill1("onk1"); //return HandleEvent(pc, QUEST_HIT_EVENT); sys_log(0,"NPC::OnHit HandleEvent PC: %d, QUEST_HIT_EVENT",pc); return HandleEvent(pc, QUEST_HIT_EVENT); } else { //PROF_UNIT puOnKill2("onk2"); //return HandleReceiveAllEvent(pc, QUEST_HIT_EVENT); sys_log(0,"NPC::OnHit HandleReceiveAllEvent PC: %d, QUEST_HIT_EVENT",pc); return HandleReceiveAllEvent(pc, QUEST_HIT_EVENT); } }
Ofc. i add QUEST_HIT_EVENT to quest.h and
m_mapEventName.insert(TEventNameMap::value_type("hit", QUEST_HIT_EVENT));
to questmanager.cpp.
Help me
Thanks in advance!PS. My quest
-- EVOR TESTUJE FUNKCJE npc. quest npc_function begin state start begin when hit begin chat("test") -- that dosen't work ;/ end when kill begin chat("test kill") -- that works just fine end end end
PS2. Syslog:
Feb 16 14:16:01.660000 :: [TEST_SERVER] Attack : EvorTest type 0, MobBattleType 0 Feb 16 14:16:01.660000 :: battle_melee_attack : [EvorTest] attack to [Głodny Wilk] Feb 16 14:16:01.660000 :: battle_melee_attack : [EvorTest] attack to [Głodny Wilk] Feb 16 14:16:01.660000 :: battle_melee_attack : [EvorTest] attack to [Głodny Wilk] Feb 16 14:16:01.660000 :: battle_hit : [EvorTest] attack to [Głodny Wilk] : dam :175 type :244485752 Feb 16 14:16:01.660000 :: CQuestManager::HIT QUEST_HIT_EVENT (pc=58855, npc=172) Feb 16 14:16:01.660000 :: NPC::OnHit QUEST_HIT_EVENT PC: 798260784 Feb 16 14:16:01.660000 :: NPC::OnHit HandleReceiveAllEvent PC: 798260784, QUEST_HIT_EVENT Feb 16 14:16:01.660000 :: Click Quest : MatchingQuest Feb 16 14:16:01.660000 :: Powinnno wytrigerować hit Feb 16 14:16:01.660000 :: Bonus Exp : Ramadan Candy: 0 MallExp: 0 PointExp: 0 Feb 16 14:16:01.660000 :: CQuestManager::Kill QUEST_KILL_EVENT (pc=58855, npc=172) Feb 16 14:16:01.660000 :: NPC::OnKill HandleReceiveAllEvent PC:798260784 Feb 16 14:16:01.660000 :: Click Quest : MatchingQuest Feb 16 14:16:01.660000 :: Click Quest : MatchingQuest Feb 16 14:16:01.676000 :: NPC::OnKill HandleReceiveAllEvent PC:798260784 Feb 16 14:16:01.676000 :: Click Quest : MatchingQuest Feb 16 14:16:01.676000 :: QUEST Setting flag npc_function.__status 0
-
You encourage me to try 2013
By the way i don't see any differences between mainline and mainline_sg.
Is there any?
-
Okey. Thanks a lot for informations.
-
Jachu u should replace the lib folder and include python2.7 in order to make binary working on the gf client By default it still uses python2.2.
- 1
DB Proto problem
in Community Support - Questions & Answers
Posted
I don't know if i can post a link into diffrent board, but i will take a risk