Jump to content

Billy

Community
  • Content Count

    120
  • Joined

  • Days Won

    28

Everything posted by Billy

  1. @BlackBarbaThat guild bank was made by me for Corsairs Online, and isn't public release (and 99% chance never will be public release)
  2. @ECHO OFF :: Declare amount of cores SET /A maxcores=4 :: Declare path to game.exe SET gamepath="system/game.exe" :: Declare game.exe name SET game="game.exe" ::Count current instances of game.exe ::Write number to tmp file. tasklist | find /I /C %game%>tmp ::Read in number from tmp file. SET /p count= <tmp ::Get modulous of count and maxcore. ::We use this to decide which core to run on. SET /A core=(%count% %% %maxcores%) SET coreparam=1 ::If there are no other clients open, ::Always run on core 0 (coreparam = 1) IF %core%==0 GOTO run ::Loop for exponent SET loop=0 :multiply SET /a coreparam=coreparam*2 SET /a loop=loop+1 IF %loop% LSS %core% GOTO multiply :run ::Run game.exe and set affinity. cmd.exe /c start "Process Monitor" /affinity %coreparam% %gamepath% startgame Can try something like this.
  3. https://www.eightforums.com/tutorials/40339-cpu-affinity-shortcut-program-create-windows.html
  4. Looks like you arent in the correct directory. Either try using the full path (eg c:/program files/top/system/game.exe) or use the cd command to change working directory
  5. Billy

    exp problem

    Try reading errors and scripts instead of just begging on forums. Who knows, you might actually learn something.
  6. Billy

    Question NPC

    added pastebin, for future referance if links dont work change daylight-online.ru/xxxxx to pkodev.net/xxxxxx
  7. It's almost as if you should actually read through scripts before copy pasting them into "your" server files... The problem is people like you who know nothing about what you are putting on your server and then turn around looking for someone else to blame when things go wrong.
  8. function MazeChest(Player, Item) local Random = 0 local tab = MazeChestVar[GetItemID(Item)] local errorMsg if not tab then errorMsg = string.format("Please contact administrator since [%s] currently has no use.",GetItemName(GetItemID(Item))) elseif GetChaFreeBagGridNum(Player) <= 0 then errorMsg = string.format("You need at least one free inventory slot to open [%s].",GetItemName(GetItemID(Item))) end if errorMsg then SystemNotice(Player,errorMsg) UseItemFailed(Player) return end while (GetItemName(Random) == "unknown" )do Random = tab[math.floor(math.random(1, table.getn(tab)))] end GiveItem(Player, 0, MazeChestVar[GetItemID(Item)][Random], 1, 5) Notice(string.format("[%s] has opened [%s] and obtained [%s].",GetChaDefaultName(Player),GetItemName(GetItemID(Item)),GetItemName(Random))) end
  9. https://msdn.microsoft.com/en-us/library/ms176057.aspx seriously, does no one know you can google questions?
  10. Truncate table [table name];
  11. Billy

    Mounts

    https://i.imgur.com/yT80Wxz.png
  12. This seems to work: http://pastebin.com/CLAcFX7c (Not 100% sure if it will always work, so obviously test it before using)
  13. You can't get client MAC from php iirc, and even if you could its easily spoofable.
  14. _G["0"] = function () end That will suppress those errors (function is still called though, so only a temporary fix). I got those errors when opening forge/combine etc
  15. In iteminfo check the line for "transparent shoes". Check to make sure the models\textures are in your client.
  16. first param is REGEX to split by, in this case it splits by @ and # . Third param is the max amount of splits
  17. You can get the account name with GetActName(role), but not ID iirc
  18. Wouldnt it be much easier to just revive instantly in After_Player_Kill_Player, and not worry about timing the 20 seconds? Something like: (untested) AutoRevive= { MapsList = { ['garner2'] = true, ['puzzleworld'] = true, ['puzzleworld2'] = true, }, PKFunc = after_player_kill_player, } function AutoRevive.CheckRevive( ATKER, role ) if AutoRevive.MapsList[GetChaMapName ( role )] == true then MoveCity(role, "") MoveCity(role, "") end AutoRevive.PKFunc(ATKER,role) end after_player_kill_player = AutoRevive.CheckRevive
  19. @Jap just change daylight-online.ru to pkodev.net in the link and the it will work
  20. i guess you didnt make the item properly. look at the npc which gives you the item, it has to be made with a certain parameter to be able to record stats.
  21. IIRC this functionality doesnt exist in pko/pko2 clients, only in zero files (could be wrong tho)
  22. Billy

    Auction NPC

    @Shako since different people structure their handlechats different i didnt add one in by default. You need to make it call Bidding.Add(role,message)
  23. other way round. &move 100,100,garner also if the spot you are teleporting to cant be stood on it might move you slightly off where you wanted to go/not move you at all.
×
×
  • Create New...