Jump to content

Search the Community

Showing results for tags 'script error'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Bulletin Centre
    • Community News
    • Repository News
    • Ragnarok News
  • Hercules Development Centre
    • Development Discussion
    • Suggestions
    • Development Centre Archives
  • Support & Releases
    • General Server Support
    • Database
    • Scripting
    • Source
    • Plugin
    • Client-Side
    • Graphic Enhancements
    • Other Support & Releases
  • Hercules Community
    • General Discussion
    • Projects
    • Employment
    • Server Advertisement
    • Arts & Writings
    • Off Topic
  • 3CeAM Centre
    • News and Development
    • Community
  • International Communities
    • Filipino Community
    • Portuguese Community
    • Spanish Community
    • Other Communities

Categories

  • Client Resources
  • Graphic Resources
    • Sprites & Palettes
    • Maps & Textures
    • Other Graphics
  • Server Resources
    • Server Managers / Editors Releases
    • Script Releases
    • Source Modifications
    • Plugins
    • Pre-Compiled Server
  • Web Resources

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Discord


Skype


IRC Nickname


Website URL


Location:


Interests


Github

Found 3 results

  1. Help me to fix this error. Thank you This is the full script // credits to Annieruru function script 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$; } - script Stylist FAKE_NPC,{ OnTalk: mes "[^0055FF ::: Adv. Stylist ::: ^000000]"; mes "I can change your appearance."; if( .cost_size ){ mes " "; mes "^777777[ SERVICES PAYMENT ]^000000"; for( .@i = 0; .@i < .menu_size; .@i++ ) if( .npc_mode & ( 1 << .@i ) ) if( .cost[.@i] ) mes "^0055FF"+.menu_name$[.@i]+" : ^777777"+ValueConvert( .cost[.@i] )+" "+.currency_name$[.@i]+"^000000"; else mes "^0055FF"+.menu_name$[.@i]+" : ^777777Free of Charge^000000"; } next; @style = ( select( .npc_menu$ ) - 1 ); @style_value = getlook( .look_type[@style] ); deletearray .@blacklist; switch( @style ){ case 0: .@blacklist$ = ","+getd( ".blacklist_hairstyle_"+Sex+"$" )+","; break; case 1: .@blacklist$ = ","+getd( ".blacklist_haircolor_"+Sex+"$" )+","; break; case 2: .@blacklist$ = ","+getd( ".blacklist_cloth_"+Sex+"$" )+","; break; default: break; } .@style_number = .min_style[@style]; addtimer 1000,strnpcinfo(0)+"::OnPCLogoutEvent"; do{ message strcharinfo(0),.menu_name$[@style]+" : "+.@style_number+"th"; .@removed = 0; if( compare( .@blacklist$,","+.@style_number+"," ) ){ message strcharinfo(0),"[ REMOVED ] "+.menu_name$[@style]+" : "+.@style_number+"th"; .@removed = 1; // setlook .look_type[@style],.min_style[@style]; }else{ setlook .look_type[@style],.@style_number; } .@next = .@style_number + 1; .@prev = .@style_number - 1; if( .@next > .max_style[@style] ) .@next = .min_style[@style]; if( .@prev < .min_style[@style] ) .@prev = .max_style[@style]; @select = prompt( (( .@backward )?"Backward":"Forward" )+" - [ ^777777"+(( .@backward )? .@prev:.@next )+"th Style^000000 ]", (( !.@backward )?"Backward":"Forward" )+" - [ ^777777"+(( !.@backward )? .@prev:.@next )+"th Style^000000 ]", "Jump to a Style", ( .@removed )?"":"^0055FFOkay, I want this "+.menu_name$[@style]+"^000000" ); if( @select == 2 ) .@backward = !.@backward; switch( @select ){ case 1: case 2: .@style_number = (( .@backward )? .@prev:.@next ); break; case 3: message strcharinfo(0),"Available Style : "+.min_style[@style]+" ~ "+.max_style[@style]+"."; input .@style_number,.min_style[@style],.max_style[@style]; break; case 4: .@atoi_currency = atoi( .currency$[@style] ); if( @style_value == .@style_number ){ message strcharinfo(0),"Swt..that is your original hairstyles."; break; } else if( .@atoi_currency ){ if( countitem( .@atoi_currency ) >= .cost[@style] ){ .@success = 1; delitem .@atoi_currency,.cost[@style]; } }else{ if( getd( ""+.currency$[@style] ) >= .cost[@style] ){ .@success = 1; setd( ""+.currency$[@style] ),( getd( ""+.currency$[@style] ) - .cost[@style] ); } } if( .@success ){ message strcharinfo(0),"Enjoy your NEW "+.menu_name$[@style]+" !!"; @style_value = .@style_number; }else{ mes "You dont have enough "+.currency_name$[@style]+" to change this "+.menu_name$[@style]+"."; mes "Cost : ^777777"+ValueConvert( .cost[@style] )+" "+.currency_name$[@style]+"^000000"; close2; } default: setlook .look_type[@style],@style_value; break; } }while( @select != 4 && @select != 255 ); mes "Come back again next time. ^^"; @select = 0; close2; deltimer strnpcinfo(0)+"::OnPCLogoutEvent"; OnPCLogoutEvent: if( @select ) setlook .look_type[@style],@style_value; end; OnInit: // NPC Mode ( Bitmask ) // 1 - Enable Hairstyle // 2 - Enable Hair Color // 4 - Enable Cloth Color .npc_mode = 7; // Menu Name setarray .menu_name$, "Hair Style", "Hair Color", "Cloth Color"; // Payment Currency + Cost // Can be ITEM ID or Any Variable. setarray .currency$, "Zeny", // Hairstyle - Ex. need Zeny "Zeny", // Hair Color - Ex. need Zeny "Zeny"; // Cloth Color - Ex. need Zeny setarray .cost, 10000, // Hairstyle ( 10,000 Zeny ) 10000, // Hair Color ( 10,000 Zeny ) 10000; // Cloth Color ( 10,000 Zeny ) // Blacklisted Style for each style and each gender. // --- Female --- .blacklist_hairstyle_0$ = "2,4,6"; .blacklist_haircolor_0$ = "1,3,5"; .blacklist_cloth_0$ = "1,2,3"; // --- Male --- .blacklist_hairstyle_1$ = "3,5,7"; .blacklist_haircolor_1$ = "2,4,6"; .blacklist_cloth_1$ = "4,5,6"; // Dont edit setarray .min_style,getbattleflag( "min_hair_style" ),getbattleflag( "min_hair_color" ),getbattleflag( "min_cloth_color" ); setarray .max_style,getbattleflag( "max_hair_style" ),getbattleflag( "max_hair_color" ),getbattleflag( "max_cloth_color" ); .menu_size = getarraysize( .menu_name$ ); .cost_size = getarraysize( .cost ); setarray .look_type,LOOK_HAIR,LOOK_HAIR_COLOR,LOOK_CLOTHES_COLOR; for( .npc_menu$ = ""; .@i < .menu_size; .@i++ ) .npc_menu$ = .npc_menu$ + ( ( .npc_mode & ( 1 << .@i ) )? .menu_name$[.@i]:"" ) +":"; for( .@i = 0; .@i < .cost_size; .@i++ ){ .@atoi = atoi( .currency$[.@i] ); .currency_name$[.@i] = ( ( !.@atoi || getitemname( .@atoi ) == "null" )? .currency$[.@i]:getitemname( .@atoi ) ); } end; } // NPC Lists prontera,155,181,5 script Adv. Stylist#main 4_M_OILMAN,{ doevent "Stylist::OnTalk"; } prontera,115,181,5 duplicate(Adv. Stylist#main) Adv. Stylist#1 4_M_OILMAN prontera,115,181,5 duplicate(Adv. Stylist#main) Adv. Stylist#2 4_M_OILMAN prontera,115,181,5 duplicate(Adv. Stylist#main) Adv. Stylist#3 4_M_OILMAN
  2. Hello everybody. I am having this error in the mercenary_rent.txt script is something strange for me that I have never had this error. I would like to ask for this help so I can solve it and if someone else also has the same error, solve it too. Thanks in advance. The error is below. [Error]: script:getd: `SPEAR_MERC_GUILD` is already used by something that is not a variable. [Debug]: Source (NPC): Mercenary Manager#Spear at prontera (41,337) It happens with the three variables setarray .@faith$, "SPEAR_MERC_GUILD", "SWORD_MERC_GUILD", "ARCH_MERC_GUILD";
  3. Aeromesi

    Script error

    Anyone able to help me on this script? //Weekend Events (Friday, saturday, and sunday//Script developed by Aeromesi prontera,150,150,4 script Noah 89,{ set .noa$, "^FF0000[Noah]^000000"; if (.frifin$ == 1 && (gettime(4)==3)) { mes .noa$; mes "You already completed Fridays quest."; close;} else { goto startquest; }if (.satfin$ == 1 && (gettime(4)==4)) { mes .noa$; mes "You already completed Saturdays quest."; close;} else { goto startquest; }if (.sunfin$ == 1 && (gettime(4)==5)) { mes .noa$; mes "You already completed Sundays quest."; close;} else { goto startquest; }if (gettime(4)==6) mes .noa$; mes "You can't do any quests until Friday, Saturday, and Sunday."; close;startquest: set .frifin$, 0; set .satfin$, 0; set .sunfin$, 0; mes .noa$; mes "Hello "+strcharinfo(0)+"."; mes "It's the weekend, have you had a busy week?"; mes "Gotta pay bills and can't afford to donate?";next; mes .noa$; mes "Well I offer quests throughout the weekend (Friday, Saturday, Sunday) so you can have 500 cash points."; mes "You may only do each quest ^FF0000ONCE^000000 per day out of the 3 days."; mes "Then the next weekend, it resets.";next; mes .noa$; mes "So, wanna do a quest?";next; menu "Yes sir!",yess,"No thanks.",nothx; yess:// Quest for Friday if ( gettime(4)==3) { mes .noa$; mes "Today is Fridays Quest!"; mes "You will need to gather 1000 Red Potions and 10m Zeny."; mes "Alright, I'll be waiting until you come back with 1000 Potions and 10m Zeny."; mes "Now, let me check if you already have the required amount of Zeny and Red Potions.";next;if(countitem(501)) >= 1000 && Zeny >= 10000000 { mes "You have the required amount of Red potions and Zeny, so for that, here is your cash points."; set #CASHPOINTS, #CASHPOINTS+500; set Zeny, Zeny-10000000; delitem 501,1000; set .fritalk$, 1; close;}} else { mes .noa$; mes "You don't have 1000 Red Potions or 10m Zeny yet."; close;} nothx: mes .noa$; mes "Alright, well come back if you decided you changed your mind!"; close;}/*- script weekend##00 -1,{ if (gettime(4)== 1 || 2 || 3 || 4 ) { set .fritalk$, 0; set .sattalk$, 0; set .suntalk$, 0;}}*/ The error I get when clicking on the NPC is: [Error]: script:op_2: invalid data for operator C_EQ[Debug]: Data: string value="" [Debug]: Data: number value=1 Debug source npc at prontera,150,150 etc...
×
×
  • Create New...

Important Information

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