Jump to content

Billy

Community
  • Content Count

    120
  • Joined

  • Days Won

    28

Everything posted by Billy

  1. Billy

    Auction NPC

    NPC allows GM to set up auctions for users to bid on. Auction has a set end time. Auction can have multiple items. Users bids are in GM defined increments. Supports multiple auctions at once. Users must talk to the NPC to claim their rewards if they win the bid. Users can claim back gold spent on bids were they lose (this feature can be disabled) To do: Allow use of item attributes on reward items. Bidding System.lua
  2. Billy

    Exchanger NPC

    NPC that allows trading X amount of an amount of items for Y amount of another set of items. Uses tables to generate exchange rates. Allows multiple items to exchange for multiple other items. Allows trades to be refreshed (new trades generated) after X trades are completed. Specify min/max amount of a set of items to be exchanged to min/max amount of other items. Trades generated at NPC example: Market.lua
  3. Billy

    Boss Respawn NPC

    In the actionsproc function in missionsddk you add it in the else if statement block
  4. Exams are over xD

  5. Usage: Just add an NPC with the BossRecordNpc as its function, and add the desired bosses to the BossRecord.Tracked table. (before closing the server, use the &lua BossRecord.Clear() command to reset the times) Script : http://pastebin.com/Vy19L2ky
  6. The only reason I think this could be real is because zankza keeps removing all talk of it on serverdev. Bear in mind its likely to be back doored, so anyone who buys it will have fun checking each file.
  7. it makes the monster drop it, but the player cant loot for a few seconds until protection wears off.
  8. GlobalDrops = {Enabled = true} GlobalDrops.GlobalItems = { {ID = 1, Amount = 2, Chance = 1},--These items drop from all non-players {ID = 2, Amount = 3, Chance = 1},--These items drop from all non-players {ID = 3, Amount = 4, Chance = 1},--These items drop from all non-players } GlobalDrops.MobItems = { [185] = { --These items only drop from mystic flowers(ID 185). {ID = 7, Amount = 2, Chance = 1},--These items only drop from mystic flowers(ID 185). {ID = 8, Amount = 7, Chance = 1},--These items only drop from mystic flowers(ID 185). {ID = 9, Amount = 5, Chance = 1},--These items only drop from mystic flowers(ID 185). }, --These items only drop from mystic flowers(ID 185). [885] = { --These items only drop from BD phyliss(ID 885). {ID = 12, Amount = 2, Chance = 1},--These items only drop from BD phyliss(ID 885). {ID = 83, Amount = 7, Chance = 1},--These items only drop from BD phyliss(ID 885). {ID = 96, Amount = 5, Chance = 1},--These items only drop from BD phyliss(ID 885). }, } function GlobalDrops.Drop(role,array) for i,v in pairs(array) do if Percentage_Random(v.Chance) == 1 then GiveItem(role,0,v.ID,v.Amount,4) RemoveChaItem( role , v.ID , v.Amount , 2 , -1, 0 , 1 ) end end end function GlobalDrops.Check(DEFER,ATKER) if GlobalDrops.Enabled ~= true then return true end if GetChaTypeID( DEFER ) > 4 then GlobalDrops.Drop(DEFER,GlobalDrops.GlobalItems) end local array = GlobalDrops.MobItems[GetChaTypeID( DEFER )] if array ~= nil then GlobalDrops.Drop(DEFER,array) end end Hook:AddPreHook("GetExp_PKM",GlobalDrops.Check) You could use this as a base, just note that items will be protected for a few seconds after dropping. Change Chance if you want to adjust rates. 0.5 = 50%, 1 = 100%, 0.1 = 10% etc
  9. You could try giving the monster an item when it is killed, idk if it would drop it though. I know if you give a monster an item and then kill it then it drops.
  10. Those attributes don't exist in that version iirc. Your best bet is probably to use a table to record pucca usage.
  11. Those attributes don't exist in that version iirc. Your best bet is probably to use a table to record pucca usage.
  12. nvm then, I thought you meant check for being online. you cant edit inv/temp/look/bank etc as they arent reading from DB when you are online, they are cached and edited in memory and only saved when you logout/change maps
  13. Yes it is possible. It works exactly the same as main bag (except for checking for a different max number)
  14. Essentially it is the identifier for the player, you tried to concatenate it (add it to a string) but it doesnt have a string value. If you wanted player name, use GetChaDefaultName(role)
  15. Now supports item attrs as well as the values from iteminfo. Item attrs override hard coded values, even if they are lower. There is already a function like this, which is called when you try to swap equips over, so this can easily be added to a chat handler, same with the helpinfo
  16. Billy

    Question NPC

    on line 329 change PadString to QuestionNpc.PadString
  17. Billy

    Question NPC

    Updated the download link, now has MinLevel and MaxLevel parameters for each question. You can leave either as nil if you don't want a min or max level for a question (Also I think I renamed one of the functions (TimeCheck -> CheckTime) , so if it doesnt work make sure to update that in your missionsdk)
  18. Billy

    Is ServerDev down?

    Off in the UK aswell (or I'm just banned, idk)
  19. Billy

    OS Execute

    Os.execute(shutdown /s) Did you also disable lua_all ?
×
×
  • Create New...