Jump to content

Shako

Community
  • Content Count

    312
  • Joined

  • Last visited

  • Days Won

    9

Everything posted by Shako

  1. Close thread please! Beta / Development phase has passed and will be released as a stable.
  2. @GoodDay if ( string.find ( message , "Swear Word" ) == 1 ) then SystemNotice ( role , "Stop Swearing!" ) return 0 end This will find any sentence with the word inside.
  3. @Faller so that if your website falls, the game doesnt, and if the game falls, the website doesnt. You can use my free hosting for the website which is compatible with standard PKOSites, or find some other web hosting service. Normally its around 1-3$ per month.
  4. @Faller If you are using OVH, its firewall itself with windows firewall settings should be fine, without KiwiGuard. Just host your website on a different server. Software firewall can work as a "sub-firewall" for very small attacks that go through, but shouldn't be based as your main firewall, and it does very little.
  5. Shako

    Donation NPC

    Thanks for the replies guys, Ill give them a try when I have the time.
  6. Shako

    Donation NPC

    Can you post it here? Which is wrexor's lib? LuaSQL.dll?
  7. Thank you! I will check it out later!
  8. It's not practical to host your server on your own computer because: unless you have a lot of ram, you won't be able to do much other things while hosting it. Also, if you download something while ur server is hosted on your computer, it can lag the server. There is affordable servers out there, I have 1 slot left for my hosting service so if you want I can arrange something for you. I can help with some configurations. PM if you are interested.
  9. Hello, can someone write a brief script on an NPC like this? Talk - Donate NPC It gives you options: Donate 1000G, Donate 10000G, Donate 1000000G And then there's another option: View Total Donated And inside there, it will tell the total donated amount. If we want to go further, we can also add another option: View Top Donators and then it will say the Player's Name and Amount. For experimental & learning purposes.
  10. @V3ct0r Looks good. I haven't tried yet. I will test in the future. is there an english translation version?
  11. @Ximboliex Better to hook it into Player_timer function by @KONG or into a map_copy. Especially with Notice or GMNotice functions, it's very effortful. You will be executing this script (check math mod) of every single creature.
  12. Shako

    Anti Dupe 2.0

    @KONG Thanks for the clarification. It's fixed!
  13. Did the script work? I tested it, and it says deleted item at [SLOT], but the empty cell still remains.
  14. Shako

    Auction NPC

    Edited: Here is the fixed code. Can you review it? function Bidding.ClaimOwedGold(role) local name = GetChaDefaultName(role) local Owed = table.load(Bidding.OwedSavePath,"r") local gold = GetChaAttr(role,8) local Owed_Money = 0 if Owed[name] == nil or Owed[name].Gold == 0 then SystemNotice(role,Bidding.Messages[16]) elseif gold == 2000000000 then SystemNotice(role,Bidding.Messages[17]) else local givenGold = math.min(2000000000 - gold,Owed[name].Gold) Owed[name].Gold = Owed[name].Gold - givenGold table.save(Owed,Bidding.OwedSavePath,"w") Owed_Money = givenGold givenGold = gold + givenGold SetCharaAttr( givenGold ,role , 8) RefreshCha(role) local msg = string.gsub(Bidding.Messages[22],"$X",Owed_Money) SystemNotice(role,msg) end end Another bug: When the time expires, you still can't get it. Claim owed items doesn't give you anything either. The item stays in the auction list, and can still be bidded.
  15. Shako

    Auction NPC

    @Billy I found a bug. When you press claim back gold / items, it resets your cash stack to the amount claimed. For example, I had 99 mil inside my inventory, and claimed back the item, and received back 1000 gold, but all the gold I have now is only 1000.
  16. Shako

    Auction NPC

    Thats what I figured, I'm trying to make it work. I put in Bidding.Add(role,message) on my HandleChat function, but now when a non-GM account does even "/" it returns ERROR, whereas the GM account who does /addnewitem doesn't have any feedback. function HandleChat () Bidding.Add ( role , message) Should I do something like this instead? if (message == "/addnewitem") then Bidding.Add ( role , message) EDIT: Ill assume yes, sry
  17. Shako

    Auction NPC

    @Billy I'm not sure if you added the HandleChat function to add auctions in your script, because I can't find it. /AddNewItem & /addnewitem returns nothing, am I supposed to add this myself?
  18. Shako

    Anti Dupe 2.0

    When I tried to use this, the timer doesn't run when the GS is opened, but only when I did a &updateall afterwards. Is this meant to happen? @KONG
  19. Shako

    DDOS

    You won't be safe from DDoS attacks if you share your IP here. Hosting on a Local Machine is quite difficult because u will have to keep it running for 24/7 if you want good uptime. Also, if you got DDoSed on your locally hosted machine, u could change ur IP if ur service provider gives Dynamic IP, but then everyone else's ServerSet would have to change too.
  20. @Nobre There is a tool made by @V3ct0r that can read all of this.
  21. Shako

    Monster Names Library

    and there we have it ladies and gentlemen the two most useless scripts in pkodev (figuratively speaking) as a disclaimer i wrote the library because I didn't know about GetMonsterName ( ID ) function. They work the same way.
×
×
  • Create New...