-
Posts
30 -
Joined
-
Last visited
-
Feedback
0%
lux's Achievements
-
-
If i hide Shops it will hide the names over the players/npc too. ?
-
I dont have it anymore.. try to edit these 2 def.. i dont remember def __gira_bonus(self): if self.slotitem != None: self.__Switch(self.slotitem,self.slotgira) ------------------------------------ def OnUpdate(self): if self.slotitem != None: self.__Switch(self.slotitem,self.slotgira)
-
Hi, I dont know if its a bug.. Anyway when a mob have more than 1 race/flag like this: MILGYO,ATT_WIND on target info i get: Race: None and subspecies: None There is any way to fix this?
-
Done, a friend helped me with!
-
Hey, hope some1 can help.. I need a function for spawn a effect for a "unique_vid" that is a mob/boss when i decide.. I write this (im so noob), but i have error on compile. int dungeon_unique_boss_effect(lua_State* L) { if (!lua_isstring(L, 1) || !lua_isstring(L, 2)) { sys_err("invalid argument"); return 0; } CQuestManager& q = CQuestManager::instance(); LPDUNGEON pDungeon = q.GetCurrentDungeon(); if (pDungeon) { LPCHARACTER boss_ch = pDungeon->GetUniqueVid(lua_tostring(L,1)); if (NULL == boss_ch) return 0; if (lua_isstring(L, 2)) { boss_ch->SpecificEffectPacket (lua_tostring(L, 2)); } return 0; } } I get this error: compile questlua_dungeon.cpp questlua_dungeon.cpp: In function 'int quest::dungeon_unique_boss_effect(lua_State*)': questlua_dungeon.cpp:512: error: invalid conversion from 'DWORD' to 'CHARACTER*' Thanks in advance..
-
Nice Thanks
-
ok i finnaly fix it alone. thx anyway
-
I realized that the problem is in this: that still try to swap Bonus even if the item isn't on slot def OnUpdate(self): self.refresh(self.slotitem,self.slotgira) So I have tryed some test like this (for let it to check if the item is on slot) But nothing cause i dont know the right python language.. def OnUpdate(self): if int(player.GetItemCount(attachedSlotPos)) > 0: self.refresh(self.slotitem,self.slotgira) Any suggest? thx
-
no one know what i need to do for fix my error? thx in advance!
-
Hey.. maybe some1 can help me.. 1° sorry for my english im so bad.. Read my last message I want put this "manual switchbonus" on my client(image below).. I have 40k server but i have some error on syseer: 0224 02:55:53431 :: Traceback (most recent call last): 0224 02:55:53431 :: File "uiswitch.py", line 159, in OnUpdate 0224 02:55:53431 :: File "uiswitch.py", line 139, in refresh 0224 02:55:53432 :: TypeError 0224 02:55:53432 :: : 0224 02:55:53432 :: an integer is required 0224 02:55:53432 :: This error was repeating at infinite on my syseer if i open the switchbonus. I take the switcher from a client and i try to put on mine.. until switcher is not open there are no error.. Lets explain what i have done.. I add this on root/game.py: Then i add uiswitch.py on root changing "import locale" to "import localeInfo" Then i add to my locale_it/it/ui switcher.py and the folder with image of switcher So... Ingame the switcher is working but i take 1mb syseer in 2 min. Before you ask.. Yes i have read this my same error and i have fix my locale_game.txt but still the same error So.. i have put something wrong or dont know.. my python is so bad. If someone know how help me thank you This is the image of switchbonus.
-
when kill with npc.get_race() == 635 or npc.get_race() == 636 or npc.get_race() == 637 begin
-
want to add bonus to items with quests so how to?
lux replied to scrabby's topic in Community Support - Questions & Answers
edit it as you wish quest crea_item begin state start begin when 20090.click with pc.is_gm() and pc.get_gm_level () >= 5 begin say ("Put Value Item") say ("Put 0 for close!") local a = tonumber ( input() ) if a == 0 then say_title ("Operation Fail!") return end if a == nil then say("U need to put a real number") say_title ("Operation Fail!") return end say ("value first Bonus") local b1 = tonumber (input()) say ("amount first Bonus") local v1 = tonumber (input()) say ("value second Bonus") local b2 = tonumber (input()) say ("amount second Bonus") local v2 = tonumber (input()) say ("value thirth Bonus") local b3 = tonumber (input()) say ("amount thirth Bonus") local v3 = tonumber (input()) say ("value fourth Bonus") local b4 = tonumber (input()) say ("amount fourth Bonus") local v4 = tonumber (input()) say ("value fifth Bonus") local b5 = tonumber (input()) say ("amount fifth Bonus") local v5 = tonumber (input()) say ("value sixth Bonus") local b6 = tonumber (input()) say ("amount sixth Bonus") local v6 = tonumber (input()) say ("value fifth Bonus") local b7 = tonumber (input()) say ("amount fifth Bonus") local v7 = tonumber (input()) say ("First Stone") say ("Put value Stone") say ("Put 0 for no stone and no slot") say ("And 1 for no stone but free slot") local p1 = tonumber (input()) say ("Second Stone") say ("Put value Stone") say ("Put 0 for no stone and no slot") say ("And 1 for no stone but free slot") local p2 = tonumber (input()) say ("Thirt Stone") say ("Put value Stone") say ("Put 0 for no stone and no slot") say ("And 1 for no stone but free slot") local p3 = tonumber (input()) pc.give_item2_select(a) item.set_socket ( 0 , p1 ) item.set_socket ( 1 , p2 ) item.set_socket ( 2 , p3 ) item.set_value(0, b1, v1) item.set_value(1, b2, v2) item.set_value(2, b3, v3) item.set_value(3, b4, v4) item.set_value(4, b5, v5) item.set_value(5, b6, v6) item.set_value(6, b7, v7) end end end -
want to add bonus to items with quests so how to?
lux replied to scrabby's topic in Community Support - Questions & Answers
Just esample and only for 40k Ur item will take a vs war stone+3, 500 hp, 250 Sp, 10 critical, 10 piercing, 10 human.. quest blabla begin state start begin when 9003.take begin item.set_socket ( 0 , 28433 ) item.set_socket ( 1 , 1 ) item.set_socket ( 2 , 1 ) item.set_value(0, 1, 500) item.set_value(1, 2, 250) item.set_value(2, 15, 10) item.set_value(3, 16, 10) item.set_value(4, 17, 10) end end end