Jump to content

r00t

Premium
  • Posts

    147
  • Joined

  • Last visited

  • Days Won

    2
  • Feedback

    0%

Everything posted by r00t

  1. quest event_drop begin state start begin local name_event = "name_of_event" local level_min = 75 -- level min for drop local level_max = 90 -- level max for drop local prob = 10 -- 10% chance of drop local item_vnum = 50513 -- item that you want drop in event local item_quantity = 1 -- quantity of item that you want drop when kill with npc.is_pc() == false and game.event_flag(name_event) == 1 begin if pc.get_level() >= level_min and pc.get_level() <= level_max then -- remove this line if you don't want level limit if number(1,100) <= prob then game.drop_item_with_ownership(item_vnum, item_quantity) end end -- remove this line if you don't want level limit end end end
  2. It possible by changes to the sources? If so, what needs to change? Sorry for english. No, there is no way...also with source
  3. 40k don't work with hamachi network...only way is vps or dedicate...
  4. With 40k nobody are able to play in your server (game came back to select server after chaoise char) Anyway...are you who, some time ago, ask for original ymir 2hand-weapon? Do you need it?
  5. Post syserr and item proto of bless and metal... btw problem came for every item?
  6. [Hidden Content] That's it
  7. This difference file is created by The Interactive Disassembler game_r40250 0005BD07: 55 65 0005BD08: 4A 49 0005C7A3: B9 C9 0005C7A4: 3F 3E Do you have add item in proto client e server?
  8. As i see you have edited uitarget.py in root for show HP % of mob... restore a backup of this file before change and test. Anyway... have you try to trade with boss? Maybe it will give you reguard without kill it
  9. Why do you have ; on the end of line1193?
  10. First of all... vanilla core is a 40k server file so you can't use it on hamachi. About your problem... delete all files in /var/db/mysql/mysql (files... not folder ) and reboot
  11. You need to change character set and use Windows-1252... problem came with accented letters such as à, ò, è etc...
  12. No work today because i have a fever so TV time... Taken 3 [Not bad but the 1 and 2 was better] Thank you for smoking [i don't know why but i love this film] A few good man ["You cant handle the truth" ] And now... i start The Merchant of Venice
  13. For who don't understand this code: every upgradable item start with vnum xx0 (xx is initial vnum) for item +0 and end with xx9 for item +9 The above code extract the last number of vnum and compare this with 0 so... only item +0 can return true.
  14. Is it possible to make like this? if item.get_vnum() == 10 or 20 or 30 or 40 then Of course... just add "item.get_vnum() == xx"... for example if item.get_vnum() == 10 or item.get_vnum() == 20 or item.get_vnum() == 30 or item.get_vnum() == 40 or item.get_vnum() == 40 or then But as you see, code will be too long if you need to add many items. So, in this way can be this: quest exchange begin state start begin when 20093.take begin local items = {10, 20, 30, 40, 50} -- put here all items you want exchange local i for i = 1, table.getn(items), 1 do if items[i] == item.get_vnum() then say("Ok... i will exchange it for a claw") item.remove() pc.give_item2(27987) return end end say ("This item can't be exchanged") end end end
  15. Just for info... do you mean like that? quest exchange begin state start begin when 20093.take begin if item.get_vnum() == 10 then say("Ok... i will exchange it for a claw") item.remove() pc.give_item2(27987) end end end end
  16. quest metin5 begin state start begin when 8001.kill begin local lvlmin= 1 local lvlmax= 10 local reward1 = 50300 local item_table = { 11202 , 11402 , 11602 , 11802 , 21002 } local Irandom = number(1,table.getn(item_table) ) local reward2 = item_table[Irandom] if pc.level >=lvlmin and pc.level <=lvlmax then local r1=number(1, 5) if r1>=2 then game.drop_item_with_ownership(reward1, 1) end local r2=number(1, 3) if r2>=2 then local quantity = number(1,5) local i for i=1,quantity,1 do Irandom = number(1,table.getn(item_table) ) game.drop_item_with_ownership(item_table[Irandom], 1) end end end end end end Try this... now you will drop different item
  17. Hi devs... exist a function, or something else, that force a game to unequip an item? pc.item_count return how many item are in inventory but... how can i know if player have a costume equipped? Thanks ^^
  18. quest metin5 begin state start begin when 8001.kill begin local lvlmin= 1 local lvlmax= 10 local reward1 = 50300 local item_table = { 11202 , 11402 , 11602 , 11802 , 21002 } local Irandom = number(1,table.getn(item_table) ) local reward2 = item_table[Irandom] if pc.level >=lvlmin and pc.level <=lvlmax then local r1=number(1, 5) if r1>=2 then game.drop_item_with_ownership(reward1, 1) end local r2=number(1, 3) if r2>=2 then local quantity = number(1,5) -- how many item of reward2 will dropped local i for i=1,quantity,1 do game.drop_item_with_ownership(reward2, 1) end end else -- ? xD end end end end
  19. You don't understand... if item can't be stacked (set by anti-flag in item_proto) you will always drop or receive 1 item. Function pc.give_item2(X,Y) is same of game.drop_item_with_ownership(X,Y) because you will receive/drop item X stacked in Y pieces. So if item are not stacked... in Y you can put any number you want but quantity received is 1.
×
×
  • 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.