Patskie

Community Contributors
  • Content count

    350
  • Joined

  • Last visited

  • Days Won

    6

Patskie last won the day on July 3 2016

Patskie had the most liked content!

About Patskie

  • Rank
    Advanced Member
  • Birthday 09/22/93

Contact Methods

  • Skype
    awesomeskie

Profile Information

  • Gender
    Male
  • Location:
    Philippines
  • Emulator:
    Hercules
  • Github
    Patskie

Recent Profile Visitors

47995 profile views
  1. Change BaseLevel to JobLevel
  2. Probably the item doesn't exist on your item database? *getitemname(<item id>) Given the database ID number of an item, this function will return the text stored in the 'japanese name' field (which, in Hercules, stores an English name the players would normally see on screen). Return "null" if no such item exist.
  3. Much better if you use getitem2 new_1-1,56,126,0 script Test 4W_SAILOR,{ if ( !countitem( 5172 ) ) close; getinventorylist; mes "Pick the refine rate of " + getitemname( 5172 ) + " that you want to trade..."; next; for ( [email protected] = 0; [email protected] < @inventorylist_count; [email protected]++ ) { if ( @inventorylist_id[ [email protected] ] == 5172 ) [email protected]$[ getarraysize( [email protected]$ ) ] = @inventorylist_refine[ [email protected] ]; } [email protected] = select( implode( [email protected]$, ":" ) ) - 1; mes "Are you sure you want to trade +" + [email protected]$[ [email protected] ] + " " + getitemname( 5172 ) + " to +" + [email protected]$[ [email protected] ] + " " + getitemname( 2249 ) + "?"; next; if ( select( "Yes:No" ) - 1 ) close; delitem2 5172,1,1,[email protected]$[ [email protected] ],0,0,0,0,0; getitem2 2249,1,1,[email protected]$[ [email protected] ],0,0,0,0,0; close; }
  4. What will happen if they don't finish it within 24 hours? I find the 24 hours time limit pointless since if i cannot get it within 24 hours i can just hit the npc the second time around and get my item
  5. Welcome back Hercules!

  6. Is this done? I'm interested! Message me
  7. I feel lazy everytime -_-

  8. Already message you
  9. - script ItemRestrict -1,{ OnPCLoadMapEvent: while ( strcharinfo( 3 ) == "mjo_dun02" || strcharinfo( 3 ) == "mjo_dun03" ) { if ( getequipid( EQI_HEAD_MID ) != 5005 ) { message strcharinfo( 0 ), "You will be out on this map after five seconds"; sleep2 5000; atcommand "@die"; sleep2 500; warp "SavePoint", 0, 0; end; } sleep2 1000; } end;}mjo_dun02 mapflag loadeventmjo_dun03 mapflag loadevent
  10. If you want the script to check once the character entered the map then use the method given by @Garr. Take note that after the first check the script would not check it anymore for the second time so the tendency is player can un-equip their gas mask after they entered the map. It would be better if you continuously check if they have the gas mask until they leave the map. Use while instead of if and use some sleep to prevent infinity loop! - script ItemRestrict -1,{ OnPCLoadMapEvent: while ( strcharinfo( PC_MAP ) == "mjo_dun02" || strcharinfo( PC_MAP ) == "mjo_dun03" ) { if ( getequipid( EQI_HEAD_MID ) != 5005 ) { message strcharinfo( PC_NAME ), "You will be out on this map after five seconds"; sleep2 5000; atcommand "@die"; sleep2 500; warp "SavePoint", 0, 0; end; } sleep2 1000; } end;}mjo_dun02 mapflag loadeventmjo_dun03 mapflag loadevent
  11. I could say 85 ~ 90% yes
  12. LOL glad to help you bro
  13. query_sql "SELECT `last_mac` FROM `login` WHERE `account_id` = '" + [email protected][ [email protected] ] + "' LIMIT 1", [email protected]$;
  14. Much appreciated. Till we meet again bro