Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 02/12/18 in all areas

  1. prontera,155,180,4 script Gold Room#tst 100,{ mes "What do you want?"; next; switch(select("Enter Gold Room.:Exchange Points:Cancel")) { case 1: @str$ = ""; mes "Make sure to type the strings correctly."; mes "Fee: ^FF0000"+F_InsertComma(.zeny)+" Z^000000"; for( .@i=0; .@i<.strLen; .@i++ ) @str$ += charat(.charSet$, rand(0, getstrlen(.charSet$))); mes "Passcode : ^FF0000"+@str$+"^000000"; next; input .@txt$; if( .@txt$ != @str$ ) { mes "You will be kicked."; close2; atcommand "@kick "+strcharinfo(0); end; } else { if( Zeny < .zeny ) { mes "Sorry, but you can't enter the room."; close; } else { @str$ = ""; Zeny -= .zeny; warp "ordeal_1-1",0,0; end; } } break; case 2: if( !#goldPoint ) { mes "Don't have enough Gold Points to exchange."; close; } mes "You currently have "+F_InsertPlural(#goldPoint, "Gold Point")+"."; mes "Do you want to exchange them all or decide on how many you will exchange?"; next; switch(select("Exchange all of my Gold Points:Decide on how many will I exchange:Cancel")) { case 1: if(!checkweight(969,#goldPoint)) { mes "Sorry, you can't carry these gold bars."; close; } else { getitem 969,#goldPoint; #goldPoint = 0; mes "Here's your gold bars."; mes "You currently have "+F_InsertPlural(#goldPoint, "Gold Point")+"."; close; } break; case 2: mes "Input how many gold points will you get."; next; input .@gpoint,0,30000; if( .@gpoint > #goldPoint ) { mes "Sorry, you don't have enough gold points to exchange."; close; } else { if(!checkweight(969,.@gpoint)) { mes "Sorry, you can't carry these gold bars."; close; } else { getitem 969, .@gpoint; #goldPoint -= .@gpoint; mes "Here's your gold bars."; mes "You currently have "+F_InsertPlural(#goldPoint, "Gold Point")+"."; close; } } break; default: goto L_Quit; break; } close; break; default: goto L_Quit; break; } L_Quit: close; end; OnInit: .charSet$ = "0123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNOPQRSTUVWXYZ"; .strLen = 10; // Sets how many characters for the generated confirmation code. .zeny = 200000; // Entrance fee for the room end; } ordeal_1-1,150,150,4 script Exit 100,{ mes "Want to go out?"; if( select("Yes:No") == 2 ) close; else { warp "SavePoint",0,0; end; } } - script gold_room -1,{ OnInit: .mob_id = 1002; // Monster ID for the Gold Room mobs monster "ordeal_1-1",0,0,"Golden Peco",.mob_id,100,strnpcinfo(0)+"::OnKilled"; end; OnKilled: .ppk = rand(1,5); // Points per kill #goldPoint += .ppk; dispbottom "-- Gold Point Information --"; dispbottom "You have acquired "+F_InsertPlural(.ppk,"Gold Point")+"."; dispbottom "You have currently have "+F_InsertPlural(#goldPoint,"Gold Point")+"."; monster "ordeal_1-1",0,0,"Golden Peco",.mob_id,1,strnpcinfo(0)+"::OnKilled"; end; OnPCDieEvent: if( strcharinfo(3) == "ordeal_1-1" ) { #goldPoint = 0; dispbottom "Sorry, but all of the Gold Points you have earned has vanished."; } end; } ordeal_1-1 mapflag pvp_noparty ordeal_1-1 mapflag pvp_noguild ordeal_1-1 mapflag nowarp ordeal_1-1 mapflag noreturn ordeal_1-1 mapflag noteleport
    2 points
  2. Error in 'itemInfo.lua' I'll send the file to you.
    1 point
  3. same error here and I'm using the last iteminfo of kro
    1 point
  4. Use the last iteminfo from kRO. The iteminfo now has a new structure, like this: [19308] = { unidentifiedDisplayName = "¸ðÀÚ", unidentifiedResourceName = "ĸ", unidentifiedDescriptionName = {"°¨Á¤µÇÁö ¾ÊÀ½. [µ¸º¸±â] ¸¦ »ç¿ëÇÏ¿© °¨Á¤ÇÒ ¼ö ÀÖ´Ù."}, identifiedDisplayName = "¾Æ¹Ì½ºÆ®¸£ º£·¹¸ð", identifiedResourceName = "¾Æ¹Ì½ºÆ®¸£º£·¹¸ð", identifiedDescriptionName = { "¾Æ¹Ì½ºÆ®¸£ÀÇ ±Í¸¦ º»µû ¸¸µç º£·¹¸ð. ", "2Á¦·Ã ´ç, MATK + 10, ATK + 10. ", "7Á¦·Ã ½Ã, º¯µ¿ ij½ºÆà 10% °¨¼Ò. ", "9Á¦·Ã ½Ã, ¹«¼Ó¼º, ¼º¼Ó¼º ¸¶¹ý °ø°Ý·Â 10% Áõ°¡. ", "11Á¦·Ã ½Ã, MATK + 3%, ATK + 5% ", "10Á¦·Ã ÃÊ°ú ½Ã, 1Á¦·Ã ´ç °íÁ¤ ij½ºÆà 0.1ÃÊ °¨¼Ò.(ÃÖ´ë 15Á¦·Ã±îÁö Àû¿ë)", "", "Ȧ¸®½ºÆ½°ú ÇÔ²² ÀåÂø ½Ã, ¹«±â 2Á¦·Ã ´ç MATK + 10, ¾Æµµ¶ó¹«½º µ¥¹ÌÁö 30% ¾¿ Áõ°¡. ", "½Å¹¦ÇÑ °­¾ÆÁöÇ® ÁöÆÎÀÌ¿Í ÇÔ²² ÀåÂø ½Ã, ¹«±â 2Á¦·Ã ´ç ¹«¼Ó¼º ¸¶¹ý °ø°Ý·Â 5% ¾¿ Áõ°¡. ", "³ªÈåÆ®Áö°ÅÀÇ Æ®À©¿§Áö(B)¿Í ÇÔ²² ÀåÂø ½Ã, ¹«±â 2Á¦·Ã ´ç Ä«Æ® ij³íÀÇ µ¥¹ÌÁö 10%¾¿ Áõ°¡. ", "°è¿­ : ^777777Åõ±¸^000000 ¹æ¾î : ^77777715^000000", "À§Ä¡ : ^777777»ó´Ü ^000000¹«°Ô : ^77777720^000000", "¿ä±¸ ·¹º§ : ^7777771^000000", "ÀåÂø : ^777777Àü Á÷¾÷^000000" }, slotCount = 1, ClassNum = 1294, costume = false },
    1 point
  5. 1 point
  6. - script maintown -1,{ OnInit: bindatcmd "go",strnpcinfo(3)+"::OnGO"; end; OnGO: atcommand "@warp yourtown 199 184"; end; }
    1 point
×
×
  • Create New...