Denis
Banned-
Posts
1031 -
Joined
-
Last visited
-
Days Won
53 -
Feedback
0%
Content Type
Forums
Store
Third Party - Providers Directory
Feature Plan
Release Notes
Docs
Events
Everything posted by Denis
-
Usually it's the variable APP_TITLE at locale/localeInfo
- 1 reply
-
- 1
-
[HELP] Mysql query error!
Denis replied to MANYAK's topic in Community Support - Questions & Answers
Post your CONFIG file from channel1 core. -
CHARACTER::UseArrow this is what you're looking for.
-
[C++] Error with 2 functions
Denis replied to rafa23alzira's topic in Community Support - Questions & Answers
int guild_get_gold(lua_State* L) { LPCHARACTER ch = CQuestManager::instance().GetCurrentCharacterPtr(); if(ch && ch->GetGuild()) { CGuild * pkGuild = CGuildManager::instance().FindGuild(ch->GetGuild()->GetID()); if(pkGuild) lua_pushnumber(L, pkGuild ? pkGuild->GetGuildMoney() : 0); } return 1; } int guild_change_money(lua_State * L) { int gold = (int)lua_tonumber(L, 1); LPCHARACTER ch = CQuestManager::instance().GetCurrentCharacterPtr(); if(ch && ch->GetGuild()) { CGuild * pkGuild = CGuildManager::instance().FindGuild(ch->GetGuild()->GetID()); if(pkGuild && gold > 0) pkGuild->RecvMoneyChange(gold); } return 1; } With these you don't need to pass any arguments so just call them like that: when 20091.click with pc.has_guild() begin local s = select("Get guild gold","Change guild gold","Exit") if s == 1 then say(string.format("Your guild gold: %s",guild.get_gold())) end else if s == 2 then say("Enter your amount") local gold = input("") if type(gold) == "number" then guild.change_gold(gold) say_reward(string.format("Your new guild gold ammount is: %s",guild.get_gold())) else say_reward("Only numbers are allowed") end end end I didn't really test these functions but I guess they should work. -
Player table loading only on reboot
Denis replied to Dimmi's topic in Community Support - Questions & Answers
No, by default g_iPlayerCacheFlushSeconds is setted to 7 minutes at Main.cpp -
You can just check if the npc is valid or not, for example: DWORD npcVNUM = npc->GetRaceNum(); if(!FN_check_valid_npc(npcVNUM)) return;
-
Player table loading only on reboot
Denis replied to Dimmi's topic in Community Support - Questions & Answers
The current time for player cache is 7 minutes(420 seconds), but you can change it by writing PLAYER_CACHE_FLUSH_SECONDS = seconds at your conf.txt at db folder. But like Alina said you shouldn't mess up with the cache. -
Yes.
-
I changed quest and the pet still disappearing when I die, someone call tell me what is wrong? I already take off the system to see if was working before, but happends the same... Actually, the pet system is working with that way.If you want to remove that open PetSystem.cpp and remove this: m_pkOwner->IsDead() ||
-
self.TitleName.SetText(localeInfo.EXCHANGE_TITLE % (exchange.GetNameFromTarget(), int(exchange.GetLevelFromTarget())))
-
How To - Compile enhanceMT Server Sources (FreeBSD 10 / CLang)
Denis replied to SgtFatality's topic in Guides & HowTo
Here you go: -
local items = { {50615, 1},{50616, 1},{50617, 1},{31062, 1},{27993, 4},{27992, 4},{27994, 4}, {53022, 1},{71018, 1},{71019, 1},{71020, 1},{30183, 1},{30319, 1},{72703, 1}, {72704, 1},{72706, 1},{72705, 1},{71035, 1},{71102, 5},{27874, 5} } local entry = math.random(1,table.getn(items)) pc.give_item2(items[entry][1],items[entry][2]) I didn't understood very well what you wrote so I guess that's what you want.
-
Rename tombola_thoria to tombola.
-
We don't support leaked files. Closed.
-
Moved to Questions and Answers
-
C++ get Hp from a mob/npc, is possible?
Denis replied to ѕeмa™'s topic in Community Support - Questions & Answers
//currently hp int npc_get_hp(lua_State * L) { DWORD vid = (DWORD) lua_tonumber(L, 1); LPCHARACTER npc = CHARACTER_MANAGER::instance().Find(vid); lua_pushnumber(L, npc->GetHP()); } //maximum hp int npc_get_max_hp(lua_State * L) { DWORD vid = (DWORD) lua_tonumber(L, 1); LPCHARACTER npc = CHARACTER_MANAGER::instance().Find(vid); lua_pushnumber(L, npc->GetMaxHP()); } -
C++ get Hp from a mob/npc, is possible?
Denis replied to ѕeмa™'s topic in Community Support - Questions & Answers
Yes, probably it should work. -
C++ get Hp from a mob/npc, is possible?
Denis replied to ѕeмa™'s topic in Community Support - Questions & Answers
//currently hp int npc_get_hp(lua_State * L) { CQuestManager& q = CQuestManager::instance(); LPCHARACTER npc = q.GetCurrentNPCCharacterPtr(); lua_pushnumber(L, npc->GetHP()); } //maximum hp int npc_get_max_hp(lua_State * L) { CQuestManager& q = CQuestManager::instance(); LPCHARACTER npc = q.GetCurrentNPCCharacterPtr(); lua_pushnumber(L, npc->GetMaxHP()); } -
Problem with horse skills
Denis replied to DemoroCZ's topic in Community Support - Questions & Answers
You should edit the field bLevelLimit from player.skill_proto and skilltable.txt too. -
C++ npc.get_level() is possible?
Denis replied to ѕeмa™'s topic in Community Support - Questions & Answers
CQuestManager& q = CQuestManager::instance(); LPCHARACTER npc = q.GetCurrentNPCCharacterPtr(); lua_pushnumber(L, npc->GetLevel()); return 1; -
Because you requested a developer rank and you didn't get it don't flame at admins. We're not a 24h slaves to check every second if the topic is at the right section, we have personal life too.
-
How to install a Web Server Secure on FreeBSD ?
Denis replied to Reboot's topic in Operating Systems
Moved to FreeBSD section. -
if (!NewPlayerTable2(&player_create_packet.player_table, pinfo->name, pinfo->job, pinfo->shape, d->GetEmpire())) to if (!NewPlayerTable2(&player_create_packet.player_table, pinfo->name, pinfo->job, pinfo->shape, (pinfo->job == 8 ? 4 : d->GetEmpire()))) at file input_login.cpp and the only thing you need to do is to add the new coords to start_position without creating extra functions like @Tasho did.
-
Include stdio.h at your SIM.h and try again.
-
You only changed python22 to python27? Or you made more changes?