Jump to content

Zell

Members
  • Content Count

    390
  • Avg. Content Per Day

    0
  • Joined

  • Last visited

  • Days Won

    17

Zell last won the day on April 29

Zell had the most liked content!

Community Reputation

186 Excellent

About Zell

  • Rank
    Stapo

Profile Information

  • Gender
    Male
  • Location
    Brasil

Recent Profile Visitors

4,971 profile views
  1. View File [Script Command] viewcondition This mod allows you to set some conditions to a player can see or interact with a NPC. Command: viewcondition( npc_name, int_variable_name, compare_method, value_1, { value_2 } ); Compara Methods Avaiable: EVC_LESS - If player variable is < value_1 EVC_EQUALS - if player variable is == value_1 EVC_MORE - if player variable is > value_1 EVC_BETWEEN - if player variable is >= value_1 and <= value_2 EVC_DIFFERENT - if player variable is != value_1 You can apply more than one condition to a npc, but if one condition fail, the npc will not be seeing by the player. Script Sample: new_1,55,111,5 Script Lupina#1 10078,{ mes "You can see and talk with me because your @teste variable is less than one!"; next; mes "Now, I will set @teste to 2 and you will no longe see me when goes outsight me or if use @refesh!"; close2; @teste = 2; end; OnInit: viewcondition( strnpcinfo(0), "@teste", EVC_LESS, 1 ); end; } Submitter Zell Submitted 04/28/2020 Category Source Modifications Video Content Author Zell  
  2. Version 1.0.0

    26 downloads

    This mod allows you to set some conditions to a player can see or interact with a NPC. Command: viewcondition( npc_name, int_variable_name, compare_method, value_1, { value_2 } ); Compara Methods Avaiable: EVC_LESS - If player variable is < value_1 EVC_EQUALS - if player variable is == value_1 EVC_MORE - if player variable is > value_1 EVC_BETWEEN - if player variable is >= value_1 and <= value_2 EVC_DIFFERENT - if player variable is != value_1 You can apply more than one condition to a npc, but if one condition fail, the npc will not be seeing by the player. Script Sample: new_1,55,111,5 Script Lupina#1 10078,{ mes "You can see and talk with me because your @teste variable is less than one!"; next; mes "Now, I will set @teste to 2 and you will no longe see me when goes outsight me or if use @refesh!"; close2; @teste = 2; end; OnInit: viewcondition( strnpcinfo(0), "@teste", EVC_LESS, 1 ); end; }

    Free

  3. Well, I'm in quarentine as everyone so a lot of free time to spend. Remade from scratch the Launcher https://streamable.com/fc0sn7
  4. This tricky with model + texture was amazing. Good work!
  5. It's not already time to implement a foreach? for( [email protected] = 0; [email protected] < getarraysize([email protected]); [email protected]++) { dispbotom "Val is " + [email protected][[email protected]]; } We could use: foreach( [email protected] : [email protected] ) { dispbottom "Val is " + [email protected]; } I could try to implement this but the script parser it's a bit confuse to me and I think someone could implement this better than me
  6. Zell

    effect

    You can use hateffects to use any game effect and clean it
  7. View File [Script Command] getdconst & setdconst First of all, yes, I know that this break the "const" concept, but I really miss "static values" in script engine. Yes, I know that we can use $vars but it's a lot pretty using const logic. If you don't know what is a "const", open your db/const.txt file In the end of file, you can add something like this: X_VALUE%TAB%1005 And now, you can call X_VALUE in any script and the script will know that X_VALUE is not a player script, it's a """"global"""" variable, so you can call it with or without a player attached. And now we came to my commands. getdsconst allow you to get a constant dynamically like getd. For sample: [email protected] = getdconst( "X" + "_" + "VALUE" ); This would return 1005. And now with setdconst we can change those as well. setdconst( "X_VALUE", 2020 ); Remember, when you restar t your server, this constant will be 1005 again! Here another sample script: prontera,150,150,5 Script CommandsTest 90,{ [email protected]$[0] = "SWORDCLAN"; [email protected]$[1] = "ARCWANDCLAN"; [email protected]$[2] = "GOLDENMACECLAN"; for( ; [email protected] < getarraysize( [email protected]$ ); [email protected]++ ) mes "Contant Value of [" + [email protected]$[[email protected]] + "] is " + getdconst( [email protected]$[[email protected]] ); next; mes "I will now, change all const values to +1"; for( [email protected] = 0; [email protected] < getarraysize( [email protected]$ ); [email protected]++ ) setdconst( [email protected]$[[email protected]], getdconst( [email protected]$[[email protected]] ) + 1 ); close; } Submitter Zell Submitted 04/03/2020 Category Source Modifications Video Content Author Zell  
  8. OnPCStatCalcEvent should never exist
  9. View File [Script Command] npcisnear This commands verify if any NPC is near the distance of a player. Can be useful for some script restrictions. Script Sample: prontera,150,150,5 Script Curious Boy 90,{ [email protected]$ = "[Curious Boy]"; [email protected] = 5; mes [email protected]$; if(isnpcsnear(getcharid(0), [email protected])) mes "Sorry, I will only talk with you when no NPC is near you!"; else mes "Hi!"; close; } Submitter Zell Submitted 04/02/2020 Category Source Modifications Video Content Author Zell  
  10. Version 1.0.0

    22 downloads

    First of all, yes, I know that this break the "const" concept, but I really miss "static values" in script engine. Yes, I know that we can use $vars but it's a lot pretty using const logic. If you don't know what is a "const", open your db/const.txt file In the end of file, you can add something like this: X_VALUE%TAB%1005 And now, you can call X_VALUE in any script and the script will know that X_VALUE is not a player script, it's a """"global"""" variable, so you can call it with or without a player attached. And now we came to my commands. getdsconst allow you to get a constant dynamically like getd. For sample: [email protected] = getdconst( "X" + "_" + "VALUE" ); This would return 1005. And now with setdconst we can change those as well. setdconst( "X_VALUE", 2020 ); Remember, when you restar t your server, this constant will be 1005 again! Here another sample script: prontera,150,150,5 Script CommandsTest 90,{ [email protected]$[0] = "SWORDCLAN"; [email protected]$[1] = "ARCWANDCLAN"; [email protected]$[2] = "GOLDENMACECLAN"; for( ; [email protected] < getarraysize( [email protected]$ ); [email protected]++ ) mes "Contant Value of [" + [email protected]$[[email protected]] + "] is " + getdconst( [email protected]$[[email protected]] ); next; mes "I will now, change all const values to +1"; for( [email protected] = 0; [email protected] < getarraysize( [email protected]$ ); [email protected]++ ) setdconst( [email protected]$[[email protected]], getdconst( [email protected]$[[email protected]] ) + 1 ); close; }

    Free

  11. Version 1.0.0

    37 downloads

    This commands verify if any NPC is near the distance of a player. Can be useful for some script restrictions. Script Sample: prontera,150,150,5 Script Curious Boy 90,{ [email protected]$ = "[Curious Boy]"; [email protected] = 5; mes [email protected]$; if(isnpcsnear(getcharid(0), [email protected])) mes "Sorry, I will only talk with you when no NPC is near you!"; else mes "Hi!"; close; }

    Free

  12. I'm using the same script posted here, its working. You have to make the source edits wich I post, as you can see you are in "source modifications" section, no "Script Section", so you have to modify the source to script works. The script sample will work after you make the source modifies I put in txt file donwload
  13. Hey, I tested and is everything working. Prob you make the wrong changes. Undo and try again to applay the modifies.
  14. View File [Script Command] isselling - Discovery if a npc is selling a item by ID This commands verify if a npc is selling, returning 1 to yes and 0 to no. Its very useful to black market scripts for players who knows item id and don't want to lost time searching where items are sold. Obs: Didn't test the sample script, but you can have a idea in how to use. Sample Script: prontera,150,150,5 Script Who's Selling 90,{ [email protected]$ = "[Who is Selling]"; mes [email protected]$; // Its nice to put a delay in this script if you use a lot of stores in one map and in your .npc$ array // I'm using 5 seconds in this sample. if((gettimetick(2) - whosell_delay) < 5) { mes "You have to wait 5 seconds to use me again."; close; } mes "Tell me the item ID you want to know what npc's is selling it!"; input [email protected]; // You can test this sample with 607 ID whosell_delay = gettimetick(2); for( [email protected] = 1; [email protected] < getarraysize(.npcs$); [email protected]++) { [email protected] = isselling( getcharid(0), .npcs$[[email protected]], [email protected] ); if( [email protected] ) { next; mes "Ha, this item is " + getitemname( [email protected] ) + ", right?"; next; mes [email protected]$; mes "Who is selling it is " + .npcs$[[email protected]] + "!"; close2; showevent QTYPE_EVENT,QMARK_YELLOW,getcharid(0),.npcs$[[email protected]]; // Show in npc a ballon to player end; } } next; mes [email protected]$; mes "No npc selling it :)"; end; OnInit: setarray .npcs$[1],"Store 1","Store 2"; end; } prontera,151,150,5 shop Store 1 90,607:1000 prontera,152,150,5 shop Store 2 90,610:1000 Submitter Zell Submitted 03/31/2020 Category Source Modifications Video Content Author Zell  
×
×
  • Create New...

Important Information

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