Jump to content

DarkWolf

Inactive Member
  • Posts

    31
  • Joined

  • Last visited

  • Feedback

    0%

Everything posted by DarkWolf

  1. hello, I would like to have a quest function to disable damage on a specific mob like this: pc.disable_mob_damage(mob_vnum) pc.enable_mob_damage(mob_vnum) so this way the player can't damage that mob please help me!
  2. Hello I've a problem in my windows server files, the skills are not working, i cant upgrade, even if i use /setsk 80 59 or /skillup 80, but in the server console of the channel i'm in, i can see the command working, but in game nothing happens, the skill points are spend but the skill don't upgrade. In my freebsd VM everything works fine. Any suggestion to solve this problem? Other question, where are saved the skills states?
  3. i solved this error to solve this error you have to open the file secblock.h from cryptopp and go to line 91 and replace CheckSize(n); with this->CheckSize(n);
  4. to solve this error you have to open the file secblock.h from cryptopp and go to line 91 and replace CheckSize(n); with this->CheckSize(n);
  5. I have the same problem! I think everything comes from folder /usr/src/...branch/extern
  6. try this: function player_is_dead() loop_timer("player_is_dead", 0.1) when player_is_dead.timer begin if pc.is_dead() then clear_timer("player_is_dead") --do your stuff here end end end
  7. Hi guys, someone know if there is some quest function that we can get the player damage on a mob? if not, can someone creat it? something like this: when 101.get_damage() >= 3000 begin or if mob.get_damage(101) >= 3000 then will be awesome if possible. best regard.
  8. I solved it! here it is: quest test4 begin state start begin function value_check(a) local check = mysql_query("SELECT * FROM player.value WHERE availableP1='"..a.."'") return check end when 20351.chat."test4" begin say_title(mob_name(npc.get_race())..":") say("") say("You want check the value?") say("") local x = select("YES","NO") if x == 2 then return elseif x == 1 then local T4 = test4.value_check("YES") if table.getn(T4) > 0 then say_title(mob_name(npc.get_race())..":") say("") say("values available.") say("") return else say_title(mob_name(npc.get_race())..":") say("") say("No values available.") say("") return end end end end end Thanks to everyone!
  9. It doesn't work, quest goes out after i choose option YES
  10. it always says "available values​​." even if i put all the table values as NO
  11. did not work, the quest goes out after i choose option YES
  12. thank you PACIFICADOR it's working. but now i have a new problem, i want to check if still available values in the table, i tried with this but not work: quest test4 begin state start begin function value_check(a) local check = mysql_query("SELECT available FROM player.value WHERE availableP1='"..a.."'") return true end when 20351.chat."test4" begin say_title(mob_name(npc.get_race())..":") say("") say("You want check the value?") say("") local x = select("YES","NO") if x == 2 then return elseif x == 1 then local T4 = test4.value_check("YES") if T4 == true then say_title(mob_name(npc.get_race())..":") say("") say("values available.") say("") return else say_title(mob_name(npc.get_race())..":") say("") say("No values available.") say("") return end end end end end If i put all as NO in the table it still says "values available."
  13. Hi guys, I'm trying to make a quest where the variable value comes from mysql_query but it isn't working like i want, can someone help please? Here's the quest: quest test2 begin state start begin function flag() local qf = mysql_query("SELECT flag_value FROM player.flag WHERE available='YES' LIMIT 1") return qf end when 20351.chat."test2" begin say_title(mob_name(npc.get_race())..":") say("") say("you want the flag?") say("") local x = select("YES","NO") if x == 2 then return elseif x == 1 then local T2 = "test2.flag()" game.set_event_flag(T2, 1) return end end end end the problem is, "teste2.flag()" from local T2 it's assumed like a flag, but it is not what i want, i want the vaule who can out from flag() function its given to the flag of game.set_event_flag. Thanks, hope someone can help.
  14. Hi all, i'm following this tutorial: [Hidden Content] to learn a little bit about python, but i'm having problem with the window, it doesn't close when i click on the close button. this is the quest i'm using to test: quest window begin state start begin when 20351.chat."show window" begin cmdchat("showDtTimer") setskin(NOWINDOW) return end end end I already have tried to close with this code on the uitd.py file: def Close(self): self.ClearDictionary() self.__Load_LoadScript.KillFocus() self.__Load_BindObject.KillFocus() self.Hide() return TRUE def __OnCloseButtonClick(self): self.ClearDictionary() self.__Load_LoadScript.KillFocus() self.__Load_BindObject.KillFocus() self.Hide() return TRUE
  15. I'm at work rigth now so i just can test it when a get home, thak you. where was the error?
  16. Here it is: [Hidden Content] VT: [Hidden Content]
  17. I'm getting always the same problem, client falls. syserr: 0317 02:49:06691 :: networkModule.py(line:194) SetSelectCharacterPhase system.py(line:130) __pack_import system.py(line:110) _process_result introSelect.py(line:26) ? system.py(line:130) __pack_import networkModule.SetSelectCharacterPhase - exceptions.SyntaxError:invalid syntax (line 297) 0317 02:49:06691 :: ============================================================================================================ 0317 02:49:06691 :: Abort!!!!
  18. Hi all, I'm trying to make a button in python who is only visible if the player has a quest flag, but I'm having some problems, when I enter the client he falls. quest quest Button begin state start begin when login begin if pc.getqf("test_1") == 1 then cmdchat("SHOW_TEST_BUTTON 1") end end end end Game.py ##TESTBUTTON "SHOW_TEST_BUTTON" : self.__ShowTestButton, ##END_TESTBUTTON constInfo.py SHOW_TEST_BUTTON = 0 uitarget.py "TEST_BUTTON", self.buttonDict["TEST_BUTTON"].SetEvent(ui.__mem_func__(self.OnTest)) if constInfo.SHOW_TEST_BUTTON() == 1: self.__ShowTestButton("TEST_BUTTON") def OnTest(self): net.SendChatPacket("/stun " + str(chr.GetNameByVID(self.vid))) Can someone help me pls. Regards, DarkWolf
×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.