Jump to content

Blue Jem

Members
  • Posts

    393
  • Joined

  • Last visited

Everything posted by Blue Jem

  1. i cant change to 192 attack speed // Maximum atk speed. (Default 190, Highest allowed 199) max_aspd: 192 // Same as max_aspd, but for 3rd classes. (Default 193, Highest allowed 199) max_third_aspd: 199
  2. Blue Jem

    droprate

    how can change this 1= 10% i want 1=1% // The rate at which cards are dropped item_rate_card: 1000000 item_rate_card_boss: 100000 item_drop_card_min: 1 item_drop_card_max: 10000
  3. can you show to me the sample of SQL injection using command of @item
  4. same i want this change to costume mount
  5. can you show or edit i cant understand master
  6. 12622,Boarding_Halter,Reins Of Mount,11,0,,10,,,,,0xFFFFFFFF,7,2,,,,,,{ setmounting(); },{},{} how can change this to Costume mount i want to use for Costume for my players
  7. i use SVN 17378 i dont know how can fix that
  8. i dont know what is the error can you check? or post the edited is not running the map server
  9. pa help naman db my GM sprite like santa bug db ngaun un GM sprite ilalagay ko sa item para magamit ng kahit sinong player un GM sprite. like halter db
  10. i dont know and why i got error when recompile the files . map server is not runnning please help me someone to know this. please i use latest SVN rathena i follow this step how to work but i got error and i dont know what is the error from my files. and i want this. http://rathena.org/board/topic/60817-extended-vending-system-18/ This is my SVN / SCR / MAP / Bump! SCR.rar
  11. prontera,142,180,4 script Punch Event 824,{ if(lifetime >= 1) goto LLT; mes "[ ^00FF00 Gate Keeper ^000000 ]"; mes "What do you want to do?"; menu "Enter Punch Arena",enter,"Exchange Punch Arena Points",Lex,"Check Punch Arena Points",Lcheck; end; enter: mes "[ ^00FF00 Gate Keeper ^000000 ]"; mes "Here you go! Come & Visit us again!"; mes "*Stamp Stamp*"; next; warp "guild_vs2",49,50; end; Llife: if(countitem(7227) < 100) goto Lnen; mes "[ ^00FF00 Gate Keeper ^000000 ]"; mes "Wow! you must be rich! Here you go! Come & Visit us again!"; mes "*Stamp Stamp*"; delitem 7227,100; set lifetime,1; close2; warp "mal_dun01",40,232; Lnot: next; mes "[ ^00FF00 Gate Keeper ^000000 ]"; mes "Suit yourself!"; close; Lnen: next; mes "[ ^00FF00 Gate Keeper ^000000 ]"; mes "Not enough credits!"; close; LLT: mes "[ ^00FF00 Gate Keeper ^000000 ]"; mes "What do you want to do?"; menu "Enter Monster Arena",-,"Exchange Points",Lex,"Check Arena Points",Lcheck; next; mes "[ ^00FF00 Gate Keeper ^000000 ]"; mes "I see you have a life-time pass.."; mes "Do you want to enter the Monster Arena?"; menu "Yes",-,"No",Lnot; next; mes "[ ^00FF00 Gate Keeper ^000000 ]"; mes "Bye! Shazam !"; close2; warp "mal_dun01",40,232; end; Lnoep: mes "[ ^00FF00 Gate Keeper ^000000 ]"; mes "Not Enough Points!"; close; Lcheck: next; mes strcharinfo(0)+"'s Arena Points : ^0000FF"+arenapoint+"^000000 Point(s)"; close; Lex: next; mes "[ ^00FF00 Gate Keeper ^000000 ]"; mes "Choose from the categories below :"; menu "Cards",-,"^0000ffCustom Items^000000",Leqp; next; mes "[ ^00FF00 Gate Keeper ^000000 ]"; mes "Choose from my card album.."; menu "Ghostring - 500pts",-, "Deviling - 600pts",Ldev, "Kiel - 1,000pts",Lkiel, "Lady Tanee - 1,200pts",Ltanee, "Thanatos - 5,000pts",Lthana, "Gloom - 5,100pts",Lhwiz, "Fallen Bishop Card - 5,100pts",Lfbh; next; mes "[ ^00FF00 Gate Keeper ^000000 ]"; mes "...."; menu "Yes",-,"Nevermind",Lnot; next; if(arenapoint < 500) goto Lnoep; mes "[ ^00FF00 Gate Keeper ^000000 ]"; mes "Here you go!"; getitem 4047,1; set arenapoint,arenapoint-500; close; Lfbh: next; mes "[ ^00FF00 Gate Keeper ^000000 ]"; mes "...."; menu "Yes",-,"Nevermind",Lnot; next; if(arenapoint < 51000) goto Lnoep; mes "[ ^00FF00 Gate Keeper ^000000 ]"; mes "Here you go!"; getitem 4441,1; set arenapoint,arenapoint-5100; close; Ldev: next; mes "[ ^00FF00 Gate Keeper ^000000 ]"; mes "...."; menu "Yes",-,"Nevermind",Lnot; next; if(arenapoint < 600) goto Lnoep; mes "[ ^00FF00 Gate Keeper ^000000 ]"; mes "Here you go!"; getitem 4174,1; set arenapoint,arenapoint-600; close; Lkiel: next; mes "[ ^00FF00 Gate Keeper ^000000 ]"; mes "...."; menu "Yes",-,"Nevermind",Lnot; next; if(arenapoint < 1000) goto Lnoep; mes "[ ^00FF00 Gate Keeper ^000000 ]"; mes "Here you go!"; getitem 4403,1; set arenapoint,arenapoint-1000; close; Ltanee: next; mes "[ ^00FF00 Gate Keeper ^000000 ]"; mes "...."; menu "Yes",-,"Nevermind",Lnot; next; if(arenapoint < 1200) goto Lnoep; mes "[ ^00FF00 Gate Keeper ^000000 ]"; mes "Here you go!"; getitem 4376,1; set arenapoint,arenapoint-1200; close; Lthana: next; mes "[ ^00FF00 Gate Keeper ^000000 ]"; mes "...."; menu "Yes",-,"Nevermind",Lnot; next; if(arenapoint < 5000) goto Lnoep; mes "[ ^00FF00 Gate Keeper ^000000 ]"; mes "Here you go!"; getitem 4399,1; set arenapoint,arenapoint-5000; close; Lhwiz: next; mes "[ ^00FF00 Gate Keeper ^000000 ]"; mes "...."; menu "Yes",-,"Nevermind",Lnot; next; if(arenapoint < 130000) goto Lnoep; mes "[ ^00FF00 Gate Keeper ^000000 ]"; mes "Here you go!"; getitem 4408,1; set arenapoint,arenapoint-105000; close; Lhp: next; mes "[ ^00FF00 Gate Keeper ^000000 ]"; mes "...."; menu "Yes",-,"Nevermind",Lnot; next; if(arenapoint < 120000) goto Lnoep; mes "[ ^00FF00 Gate Keeper ^000000 ]"; mes "Here you go!"; getitem 4363,1; set arenapoint,arenapoint-120000; close; LLK: next; mes "[ ^00FF00 Gate Keeper ^000000 ]"; mes "...."; menu "Yes",-,"Nevermind",Lnot; next; if(arenapoint < 280000) goto Lnoep; mes "[ ^00FF00 Gate Keeper ^000000 ]"; mes "Here you go!"; getitem 4357,1; set arenapoint,arenapoint-280000; close; Lws: next; mes "[ ^00FF00 Gate Keeper ^000000 ]"; mes "...."; menu "Yes",-,"Nevermind",Lnot; next; if(arenapoint < 150000) goto Lnoep; mes "[ ^00FF00 Gate Keeper ^000000 ]"; mes "Here you go!"; getitem 4361,1; set arenapoint,arenapoint-150000; close; Lsni: next; mes "[ ^00FF00 Gate Keeper ^000000 ]"; mes "...."; menu "Yes",-,"Nevermind",Lnot; next; if(arenapoint < 200000) goto Lnoep; mes "[ ^00FF00 Gate Keeper ^000000 ]"; mes "Here you go!"; getitem 4367,1; set arenapoint,arenapoint-200000; close; Lsinx: next; mes "[ ^00FF00 Gate Keeper ^000000 ]"; mes "...."; menu "Yes",-,"Nevermind",Lnot; next; if(arenapoint < 300000) goto Lnoep; mes "[ ^00FF00 Gate Keeper ^000000 ]"; mes "Here you go!"; getitem 4359,1; set arenapoint,arenapoint-300000; close; Leqp: next; mes "[ ^00FF00 Gate Keeper ^000000 ]"; mes "Choose from the available equipments.."; menu "Lord Kaho - 500pts",-; next; mes "[ ^00FF00 Gate Keeper ^000000 ]"; mes "...."; menu "Yes",-,"Nevermind",Lnot; next; if(arenapoint < 500) goto Lnoep; mes "[ ^00FF00 Gate Keeper ^000000 ]"; mes "Here you go!"; getitem 5013,1; set arenapoint,arenapoint-1000; close; Lsupp: next; mes "[ ^00FF00 Gate Keeper ^000000 ]"; mes "Choose from the available supplies."; menu "Guild Glistening Coat Supply - 7,000pts",-,"Yggdrasil Berry Bulk Supplies - 14,000pts",Lsupbox; next; mes "[ ^00FF00 Gate Keeper ^000000 ]"; mes "...."; menu "Yes",-,"Nevermind",Lnot; next; if(arenapoint < 1000) goto Lnoep; mes "[ ^00FF00 Gate Keeper ^000000 ]"; mes "Here you go!"; getitem 12476,5; set arenapoint,arenapoint-1000; close; Lsupbox: next; mes "[ ^00FF00 Gate Keeper ^000000 ]"; mes "You can get these for ^FF00FF500^000000 Points, Do you still want it?"; menu "Yes",-,"Nevermind",Lnot; next; if(arenapoint < 1000) goto Lnoep; mes "[ ^00FF00 Gate Keeper ^000000 ]"; mes "Here you go!"; getitem 12474,50; set arenapoint,arenapoint-1000; close; } - script monsterarena -1,{ OnGuardianKill: set arenapoint,arenapoint+1; dispbottom "You Have 1 point Punch Arena Event"; end; OnClock0200: OnClock0400: OnClock0600: OnClock0800: OnClock1000: OnClock1200: OnClock1400: OnClock1600: OnClock1800: OnClock2000: OnClock2200: announce "Punch Event: Start in min Please Come here",0; initnpctimer; end; OnTimer10000: mapannounce "guild_vs2","The Punch Event is Started ",0; monster "guild_vs2",0,0,"Skeggiold",1764,30,"monsterarena::OnGuardianKill"; end; OnTimer50000: mapannounce "guild_vs2","Wave 2 is started",0; monster "guild_vs2",0,0,"Skeggiold",1764,30,"monsterarena::OnGuardianKill"; end; OnTimer70000: mapannounce "guild_vs2","Wave 3 is started",0; monster "guild_vs2",0,0,"Skeggiold",1764,30,"monsterarena::OnGuardianKill"; end; OnTimer90000: mapannounce "guild_vs2","Wave 4 is started",0; monster "guild_vs2",0,0,"Skeggiold",1764,30,"monsterarena::OnGuardianKill"; end; OnTimer100000: mapannounce "guild_vs2","Final wave is Started",0; monster "guild_vs2",0,0,"1Skeggiold",1764,50,"monsterarena::OnGuardianKill"; end; OnTimer600000: stopnpctimer; killmonsterall "guild_vs2"; }
  12. D,DBName,ScreenName,Type,Price,Sell,Weight,ATK,DEF,Range,Slot,Job,Upper,Gender,Loc,wLV,eLV,Refineable,View,{Script},{OnEquip_Script},{OnUnequip_Script} i want to make costume suit if can, i got the custom suit. what i need to do only can make ppl equip item to wear that. anyone know how to make a item for custom palate ? how to do? custom pallate need put what name? or robe or lower part?? anyone??? is that possible to use item when equip up will change palate? ......
  13. this is the command for buy and Sell or trade and @chat for pm like that or global chat in dispbottom
  14. i try i got error this but announce to all player in dispbottom
  15. like guild chat display the msg to dispbottom 12221 when i use this item show to dispbottom like this show to all player the msg
  16. using megaphone @input msg for sell the items
  17. i cant understand i got error
  18. like this prontera,170,171,5 script Monster Marching 757,{ if( getgmlevel() < 90 ) end; .@flower_count = mobcount( .npc_map$,$@npc_name$+"::OnFlowerDied" ); switch( select( ( $@marching_status )?"":"Set Mob Sprite",( $@marching_status )?"Stop:":( ( !$@sprite_size )?"":"Start" ),( .@flower_count )?"Hide Flower Wall":"Display Flower Wall" ) ){ Case 1: mes "Sprite List :"; do{ if( @menu == 3 ){ do{ $@sprite[.@size] = rand( 1001,2300 ); }while( getmonsterinfo( $@sprite[.@size],MOB_NAME ) == "null" ); }else{ input $@sprite[.@size],0,2300; if( !$@sprite[.@size] ) close; } .@name$ = getmonsterinfo( $@sprite[.@size],MOB_NAME ); if( .@name$ != "null" ){ mes " ^777777> "+.@name$+"^000000"; .@size++; } }while( select( "Add Another Sprite","Continue","Random Mob" ) != 2 ); $@sprite_size = .@size; mes "Speed : "; input $@speed,100,500; Case 2: if( $@marching_status ){ mes "Marching Cancelled."; $@marching_status = 0; close2; donpcevent "::OnEnd"; }else{ mes "Marching Started."; close2; if( callsub( OnSetupNPC ) ){ if( !.@flower_count ) donpcevent "::OnFlowerWall"; donpcevent "::OnWalk"; }else{ npctalk "Marching Failed to start."; donpcevent "::OnEnd"; } } break; Case 3: mes "Flower Wall "+( ( !.@flower_count )?"Summoned":"Removed" ); if( !.@flower_count ) donpcevent "::OnFlowerWall"; else killmonster .npc_map$,$@npc_name$+"::OnFlowerDied"; default: break; } end; OnSetupNPC: $@marching_status = 0; for( .@y = 0; .@y < .y_align_size; .@y++ ) for( .@x = 0; .@x < .x_align_size; .@x++ ){ if( checkcell( .npc_map$,( .x_align[.@x] + .x_align_offset ),( .y_align[.@y] + .y_align_offset ),cell_chkpass ) ){ hideoffnpc "mob#"+$@marching_status; movenpc "mob#"+$@marching_status,( .x_align[.@x] + .x_align_offset ),( .y_align[.@y] + .y_align_offset ); specialeffect 344,AREA,"mob#"+$@marching_status; $@marching_status++; } } return $@marching_status; OnEnd: announce "Marching End.",0; sleep 1000; donpcevent "::OnHide"; killmonster .npc_map$,$@npc_name$+"::OnFlowerDied"; end; // auto start marching if admin configured the npc. OnMinute00: OnMinute30: if( $@sprite_size ){ announce "Marching Started at "+.npc_map$,0; sleep 5000; if( callsub( OnSetupNPC ) ){ if( !mobcount( .npc_map$,$@npc_name$+"::OnFlowerDied" ) ) donpcevent "::OnFlowerWall"; donpcevent "::OnWalk"; } } end; OnInit: // how many step they walk everytime $@walk_step = 2; // hide npc when reach this y-coordinate $@end_y_coordinate = 129; // offset align for coordinate x and y .x_align_offset = 0; .y_align_offset = 0; // npc alignment coordinate ( prefer write in ascending order ) setarray .x_align,151,153,155,157,159,161; setarray .y_align,165,167,169,171,173; .x_align_size = getarraysize( .x_align ); .y_align_size = getarraysize( .y_align ); $@y_restart = .y_align[ .y_align_size-1 ] + .y_align_offset; $@npc_name$ = strnpcinfo(0); .npc_map$ = strnpcinfo(4); OnWalk: OnFlowerDied: end; OnFlowerWall: killmonster .npc_map$,$@npc_name$+"::OnFlowerDied"; for( .@i = 175; .@i > 131; .@i-- ){ monster .npc_map$,147,.@i,"WALL",rand( 1934,1936 ),1,$@npc_name$+"::OnFlowerDied"; monster .npc_map$,164,.@i,"WALL",rand( 1934,1936 ),1,$@npc_name$+"::OnFlowerDied"; } end; } prontera,1,1,4 script mob 111,{ end; OnHide: .@npc_name$ = strnpcinfo(0); setnpcdisplay( .@npc_name$,.@npc_name$,111 ); movenpc .@npc_name$,1,1; hideonnpc .@npc_name$; end; OnWalk: .@npc_name$ = strnpcinfo(0); npcspeed $@speed; while( .@sprite < $@sprite_size && $@sprite[.@sprite] && $@marching_status ){ if( !setnpcdisplay( .@npc_name$,getmonsterinfo( $@sprite[.@sprite],MOB_NAME ),$@sprite [.@sprite] ) ){ hideoffnpc .@npc_name$; while( $@marching_status ){ getmapxy( .@map$,.@x,.@y,1 ); if( .@y > $@end_y_coordinate ){ npcwalkto .@x,( .@y - $@walk_step ); }else if( .@y <= $@end_y_coordinate ){ npcstop; break; } sleep 1750; } specialeffect 344; } .@sprite++; if( .@sprite < $@sprite_size && $@marching_status ){ movenpc .@npc_name$,.@x,$@y_restart; specialeffect 344,AREA,.@npc_name$; } } movenpc .@npc_name$,1,1; hideonnpc .@npc_name$; setnpcdisplay( .@npc_name$,.@npc_name$,111 ); if( $@marching_status > 0 ){ $@marching_status--; if( $@marching_status == 0 ) donpcevent $@npc_name$+"::OnEnd"; } end; } // duplicate more if you need .. prontera,1,1,4 duplicate(mob) mob#0 111 prontera,1,1,4 duplicate(mob) mob#1 111 prontera,1,1,4 duplicate(mob) mob#2 111 prontera,1,1,4 duplicate(mob) mob#3 111 prontera,1,1,4 duplicate(mob) mob#4 111 prontera,1,1,4 duplicate(mob) mob#5 111 prontera,1,1,4 duplicate(mob) mob#6 111 prontera,1,1,4 duplicate(mob) mob#7 111 prontera,1,1,4 duplicate(mob) mob#8 111 prontera,1,1,4 duplicate(mob) mob#9 111 prontera,1,1,4 duplicate(mob) mob#10 111 prontera,1,1,4 duplicate(mob) mob#11 111 prontera,1,1,4 duplicate(mob) mob#12 111 prontera,1,1,4 duplicate(mob) mob#13 111 prontera,1,1,4 duplicate(mob) mob#14 111 prontera,1,1,4 duplicate(mob) mob#15 111 prontera,1,1,4 duplicate(mob) mob#16 111 prontera,1,1,4 duplicate(mob) mob#17 111 prontera,1,1,4 duplicate(mob) mob#18 111 prontera,1,1,4 duplicate(mob) mob#19 111 prontera,1,1,4 duplicate(mob) mob#20 111 prontera,1,1,4 duplicate(mob) mob#21 111 prontera,1,1,4 duplicate(mob) mob#22 111 prontera,1,1,4 duplicate(mob) mob#23 111 prontera,1,1,4 duplicate(mob) mob#24 111 prontera,1,1,4 duplicate(mob) mob#25 111 prontera,1,1,4 duplicate(mob) mob#26 111 prontera,1,1,4 duplicate(mob) mob#27 111 prontera,1,1,4 duplicate(mob) mob#28 111 prontera,1,1,4 duplicate(mob) mob#29 111 prontera,1,1,4 duplicate(mob) mob#30 111
  19. i cant understand master 7146 this can you change to usable item unlimted use master
  20. is work master but i want if i use red potion. cant delete or pernament usable item
  21. if i use this 7146 after using pernament on character // Settings : // - Only required to edit the ShopSetting() Function // Notes : You may also add / remove Menu ( If any ) // - Shop Currency can be either ItemID or Variable Name, but must write within Quotation Marks ( "" ) // Ex. of Variable. -> Zeny , #CASHPOINTS , #KAFRAPOINTS , CustomVariable , #CustomVariable // - ERROR Message are used to show Invalid Settings in your NPC. // Leave this alone... - shop Emistry_Shop -1,512:100 - script Shopper 757,{ function ShopSettings; function ValidateCost; function CurrencyInfo; function ClearData; function ValueConvert; function ErrorNotice; mes "Each Shop from the Menu may purchase using ^FF0000Different Currency^000000."; mes "^00FF00____________________________^000000"; mes "So,Which shop you would like to look at it"; next; // Menu Selection select("TCG Shop","Event Ticket Shop","Donate Shop"); ClearData(); ShopSettings( @menu ); npcshopitem "Emistry_Shop",512,100; npcshopdelitem "Emistry_Shop",512; for(set .@i,0; .@i < getarraysize( @ItemLists ); set .@i,.@i+1) npcshopadditem "Emistry_Shop",@ItemLists[.@i],@ItemCost[.@i]; mes "Okay...wait awhile"; mes "^00FF00____________________________^000000"; CurrencyInfo( @Currency$ ); mes "^00FF00____________________________^000000"; callshop "Emistry_Shop",1; npcshopattach "Emistry_Shop"; end; function ShopSettings { switch( getarg(0) ){ Case 1: // Currency [ Item ID / Variable Name ] set @Currency$,"7227"; // Item ID Lists setarray @ItemLists[0],6153,7227,608; // Item Price setarray @ItemCost[0],100,1,30; break; Case 2: // Currency [ Item ID / Variable Name ] set @Currency$,"7711"; // Item ID Lists setarray @ItemLists[0],2306,2302,2303,2304,2305,2301,13036,512; // Item Price setarray @ItemCost[0],2,2,3,4,5,6,50,50; break; Case 3: // Currency [ Item ID / Variable Name ] set @Currency$,"7179"; // Item ID Lists setarray @ItemLists [0],22000,22001,22002,22003,22004,22005,4357,4359,4361,4363,4365,4367,4441,4128,4399; // Item Price setarray @ItemCost[0],20,20,20,20,20,20,20,20,20,20,20,20,20,20,20; break; // Case 4,5,6.....etc... default: ErrorNotice( "Invalid Menu Selection for Menu "+@menu+"." ); close; } if( @Currency$ == "" ) ErrorNotice( "Invalid Currency Setting in Menu "+@menu+" ." ); if( getarraysize( @ItemCost ) != getarraysize( @ItemLists ) || getarraysize( @ItemLists ) != getarraysize( @ItemCost ) ) ErrorNotice( "Missing or Extra Value of Item or Cost Settings in Menu "+@menu+" ." ); return; } function ErrorNotice { mes "^FF0000ERROR^000000 - "+getarg(0); mes "^00FF00____________________________^000000"; mes "Inform this Message to ^0000FFGame Staffs^000000 immediately !"; close; } function CurrencyInfo { if( getitemname( atoi( getarg(0) ) ) != "null" ){ mes "Item Currency : ^FF0000"+getitemname( atoi( getarg(0) ) )+"^000000"; mes "Available Amount : ^0000FF"+ValueConvert( countitem( atoi( getarg(0) ) ) )+"^000000"; }else if( getitemname( atoi( getarg(0) ) ) == "null" ){ mes "Variable Currency : ^FF0000"+getarg(0)+"^000000"; mes "Available Amount : ^0000FF"+ValueConvert( getd( getarg(0) ) )+"^000000"; } return; } function ValidateCost { if( getitemname( atoi( getarg(0) ) ) != "null" ){ if( countitem( atoi( getarg(0) ) ) < getarg(1) ) return 1; }else{ if( getd( getarg(0) ) < getarg(1) ) return 1; } return 0; } function ClearData { set @Currency$,""; set @TotalCost,0; deletearray @bought_nameid[0],getarraysize( @bought_nameid ); deletearray @bought_quantity[0],getarraysize( @bought_quantity ); deletearray @ItemLists[0],getarraysize( @ItemLists ); deletearray @ItemCost[0],getarraysize( @ItemCost ); return; } function ValueConvert { set .@num, atoi(""+getarg(0)); if ( .@num == 0 || .@num >= 2147483647 ) return getarg(0); set .@l, getstrlen(""+.@num); for ( set .@i,0; .@i < .@l; set .@i, .@i + 1 ) { set .@num$, .@num % pow(10,.@i+1) / pow(10,.@i) + .@num$; if ( (.@i+1) % 3 == 0 && .@i+1 != .@l ) set .@num$, ","+ .@num$; } return .@num$; } OnBuyItem: ShopSettings( @menu ); for(set @i,0; @i < getarraysize( @bought_nameid ); set @i,@i+1) for(set @j,0; @j < getarraysize( @ItemLists ); set @j,@j+1) if( @ItemLists[@j] == @bought_nameid[@i] ) set @TotalCost,@TotalCost + ( @ItemCost[@j] * @bought_quantity[@i] ); mes "^FF0000 BILLING LIST^000000"; mes "^00FF00____________________________^000000"; for( set @i,0; @i < getarraysize( @bought_nameid ); set @i,@i+1 ) mes "^FF0000"+@bought_quantity[@i]+" x ^0000FF"+getitemname( @bought_nameid[@i] )+"^000000"; mes "^00FF00____________________________^000000"; if( getitemname( atoi( @Currency$ ) ) != "null" ) mes "Total Cost : ^0000FF"+ValueConvert( @TotalCost )+" x "+getitemname( atoi( @Currency$ ) )+"^000000"; else if( getitemname( atoi( @Currency$ ) ) == "null" ){ mes "Total Cost : ^0000FF"+ValueConvert( @TotalCost )+" "+@Currency$+"^000000"; } mes "^00FF00____________________________^000000"; if( ValidateCost( @Currency$,@TotalCost ) ){ if( getitemname( atoi( @Currency$ ) ) != "null" ) mes "[ ^FF0000X^000000 ] Insufficient ^0000FF"+getitemname( atoi( @Currency$ ) )+"^000000"; else{ mes "[ ^FF0000X^000000 ] Insufficient ^0000FF"+@Currency$+"^000000"; } }else{ if( select( "^0000FFPurchase^000000:Cancel" ) == 1 ){ if( getitemname( atoi( @Currency$ ) ) != "null" ) delitem atoi( @Currency$ ),@TotalCost; else{ set getd( @Currency$ ),getd( @Currency$ ) - @TotalCost; } for(set @i,0; @i < getarraysize( @bought_nameid ); set @i,@i+1) getitem @bought_nameid[@i],@bought_quantity[@i]; message strcharinfo(0),"Purchased "+getarraysize( @bought_nameid )+" Items."; mes "Thank you for shopping."; } } ClearData(); close; } 501,Red_Potion,Red Potion,0,50,,70,,,,,0xFFFFFFFF,7,2,,,,,,{ itemheal rand(45,65),0; doevent "npcname::shopper"; },{},{} is not working master
×
×
  • Create New...