Jump to content

Oxxy

Members
  • Content Count

    142
  • Joined

  • Last visited

  • Days Won

    5

Everything posted by Oxxy

  1. No, its not activated in config. You just need appropriate client version. Here you go
  2. You will need to create a new event, something like OnPCPickItemUP, and then just create a simple NPC script. If you will manage to make that new event, the two commands you will need after are: consumeitem <item_id>;delitem <item_id>,1;
  3. I can't help translating things for you, but might help you with some sources / scripts, do you have private repo created already? That's one thing I'm looking for. Some @commands error out and there's some db-errors etc. D: Add me on skype, or ICQ. Checkout my profile to see info.
  4. What's not working? Any errors map-server? There had been no errors in map-server Can't check the script by myself for now, for now I don't see any errors in script, but you could ask the original creator @@Winterfox, or maybe wait for somebody else, sorry for that!
  5. I can't help translating things for you, but might help you with some sources / scripts, do you have private repo created already?
  6. Not exe diffing, but client reverse engineering :-)
  7. What's not working? Any errors map-server?
  8. Here you go: prontera,150,150,1 script PutBack 987,{ mes "Hi. Can i help you?"; if(select("Put coins back to CP:Close") == 2) close; if (countitem(677) < 100){ mes "I'm sorry, you need at least 100 coins because 100 is equal to 1 credit."; close; } mes "Input amount:"; input .@a,100,1000; if(.@a%100) { mes "Can't transfer that much"; mes "Because your amount of coins ins't dividable by 100"; close; } if(countitem(677) < .@a) { mes "You don't have enough "+getitemname(677); mes "You need "+(.@a - countitem(677))+" more "+getitemname(677); close; } next; .@cp_credits = .@a/100; mes "Here you go!"; mes "You will get "+.@cp_credits; query_sql("UPDATE `cp_credits` SET `balance` = `balance` + "+ .@cp_credits +" WHERE `account_id` = '"+getcharid(3)+"'"); delitem 677, .@a; close;} Didn't test it btw. Thank you sir, works perfectly! Tried, but now it doesnt let me put 400 either ...Ah, ok dastgir. Check my post again. Made the edit but oddly it still takes it. Didn't test it btw. Ah, i found an issue. If players input 1234, they take 1234 coins, but the credits on the CP only gets updated by 10. What do i need to edit so they can only input amounts that end with two (or three) zeros? >.< prontera,150,150,1 script PutBack 987,{ mes "Hi. Can i help you?"; menu "Put coins back to CP",-; if (countitem(677) < 100){ mes "I'm sorry, you need at least 100 coins because 100 is equal to 1 credit."; close; } mes "Input amount:" input (????) query_sql("UPDATE `cp_credits` SET `balance` = (????+00) WHERE `account_id` = '"+getcharid(3)+"'"); (is this right?) delitem 677,(input amount here); sleep2 10; dispbottom "Coins converted back to site credits."; } close; end; }Here you go:prontera,150,150,1 script PutBack 987,{ mes "Hi. Can i help you?"; if(select("Put coins back to CP:Close") == 2) close; if (countitem(677) < 100){ mes "I'm sorry, you need at least 100 coins because 100 is equal to 1 credit."; close; } mes "Input amount:"; input .@a,100,1000; if(.@a%100) { mes "Can't transfer that much"; mes "Because your amount of coins ins't dividable by 100"; close; } if(.@a < 100 || .@a > 1000) close; if(countitem(677) < .@a) { mes "You don't have enough "+getitemname(677); mes "You need "+(.@a - countitem(677))+" more "+getitemname(677); close; } next; .@cp_credits = .@a/100; mes "Here you go!"; mes "You will get "+.@cp_credits; query_sql("UPDATE `cp_credits` SET `balance` = `balance` + "+ .@cp_credits +" WHERE `account_id` = '"+getcharid(3)+"'"); delitem 677, .@a; close;} it can't just take 1234 coins, because if you will enter more than 1000, it will just interrupt the script.
  9. Tried, but now it doesnt let me put 400 either ...Ah, ok dastgir. Check my post again.
  10. After: mes "Input amount:"; input .@a,100,1000; if(.@a%100) { mes "Can't transfer that much"; mes "Because your amount of coins ins't dividable by 100"; close; } add this: if(.@a < 100 || .@a > 1000) close;
  11. Here you go: prontera,150,150,1 script PutBack 987,{ mes "Hi. Can i help you?"; if(select("Put coins back to CP:Close") == 2) close; if (countitem(677) < 100){ mes "I'm sorry, you need at least 100 coins because 100 is equal to 1 credit."; close; } mes "Input amount:"; input .@a,100,1000; if(.@a%100) { mes "Can't transfer that much"; mes "Because your amount of coins ins't dividable by 100"; close; } if(countitem(677) < .@a) { mes "You don't have enough "+getitemname(677); mes "You need "+(.@a - countitem(677))+" more "+getitemname(677); close; } next; .@cp_credits = .@a/100; mes "Here you go!"; mes "You will get "+.@cp_credits; query_sql("UPDATE `cp_credits` SET `balance` = `balance` + "+ .@cp_credits +" WHERE `account_id` = '"+getcharid(3)+"'"); delitem 677, .@a; close;} Didn't test it btw.
  12. Use NPC script: - script OnKillMonsterDoDropItem -1,{ OnNPCKillEvent: switch(killedrid) { case 1002: // Poring if(rand(10000) < 500) { // < 100 = 1% drop chance getitem 7539, 1; // Poring Coin break; } else break; default: // All other monsters break; }}
  13. Just for you to know, there's "Thumbs up" button ^^ Happens buddy
  14. He wants to give it for free to certain ID, so the char shouldn't have #vip == 1 :/ You're wrong here.
  15. mes "You can <URL>Google<INFO>http://www.google.com/</INFO></URL> anything"; so you can do like that: mes "I need 1x <URL>TCG Card<INFO>http://ratemyserver.net/item_db.php?item_id=7227&ird=0&small=1&back=1</INFO></URL> This will open a link to the TCG Card description on ratemyserver
  16. if(getcharid(3) == account_id || strcharinfo(0) == "Player Name" || #vip == 1) so if guild id... ill just use if(getcharid(3) == guild_id || getcharid(3) == account_id || strcharinfo(0) == "Player Name" || #vip == 1) is this correct mr @@Oxxy ? yay thank you very much ! Glad your here to help us For guild id: if(getcharid(2) == guild_id || getcharid(3) == account_id || strcharinfo(0) == "Player Name" || #vip == 1)
  17. if(getcharid(3) == account_id || strcharinfo(0) == "Player Name" || #vip == 1)
  18. if(strcharinfo(0) == "Player Nick" || #vip == 1) { <full buffs>}
  19. Interesting thing, I've found it earlier, but I guess forgot to update the script. Change all $GM_ variables to $@GM_ variables, as the latter ones aren't saved between server restarts. Alternatively just clear the $GM_ variables in the OnInit section. @Oxxy: You could also add an option to specify by which column (map, level, name, ...) the character list should be ordered. Hm... will think about it, when will have time - gonna update it :-) ty for suggestions.
  20. Oxxy

    Paypal scam problem

    Please, create another thread about this person and leave everything you can about him, so people will know whom you deal with.
  21. There's restriction in how many options can be shown via select if I remember right, anyway, show the script.
  22. What's the error? I don't see anything that could cause an error.
  23. prontera,150,150,6 script Aura NPC 700,{ mes "[Aura NPC]"; if(BaseLevel < 255 && JobLevel < 120) { mes "I can't help you!"; close; } mes "Please choose an aura from the list!"; switch(select("Aura 1:Aura 2:Aura 3:Aura 4: Aura 5: Aura 6")) { case 1: next; mes "[Aura NPC]"; mes "Your Aura was set to #1"; aura 586,-1,-1; close; case 2: next; mes "[Aura NPC]"; mes "Your Aura was set to #2"; aura 586,362,-1; close; case 3: next; mes "[Aura NPC]"; mes "Your Aura was set to #3"; aura 586,362,240; close; case 4: next; mes "[Aura NPC]"; mes "Your Aura was set to #4"; aura 418,-1,-1; close; case 5: next; mes "[Aura NPC]"; mes "Your Aura was set to #5"; aura 486,-1,-1; close; case 6: next; mes "[Aura NPC]"; mes "Your Aura was set to #6"; aura 485,-1,-1; close; }}
  24. db/pet_db is not official enough?
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.