Jump to content

Zell

Members
  • Posts

    404
  • Joined

  • Last visited

  • Days Won

    23

Zell last won the day on September 16

Zell had the most liked content!

Profile Information

  • Gender
    Male
  • Location
    Brasil

Recent Profile Visitors

7,295 profile views

Zell's Achievements

  1. If you wont do it in src its better to not do. When I had one of my first servers I went with the idea of doing this on a production server. The script was not that complex and lagged the entire server when players with a lot of aspd attacked the mob.
  2. Just change mes "Er hat bestimmt weitere Missionen, wo du ihm helfen kannst.";next;if(PoringKills < 10) goto l_nokills;set PoringKills,PoringKills - 10; getitem 569,400; getexp 500,300; close;l_nokills:mes "Du hast noch keine 10 Poringe besiegt.!"; to mes "Er hat bestimmt weitere Missionen, wo du ihm helfen kannst."; if(PoringKills < 10) goto l_nokills; set PoringKills,PoringKills - 10; getitem 569,400; getexp 500,300; close; l_nokills: next; mes "Du hast noch keine 10 Poringe besiegt.!"; And here is your script refactored for learning purpose: chry_fld,62,73,4 script Uppe 894,{ mes "Hallo ich bin Uppe."; mes "Ich brauche deine Hilfe!"; mes "Kannst du bitte 10 Poringe besiegen."; mes "Ich gebe dir auch eine kleine Belohnung."; next; mes "Danke das du 10 Poringe besiegt hast."; mes "Hier ist deine Belohnung."; mes "Kannst du mir noch einen Gefallen tun?"; mes "Solltest du nach Prontera reisen, kannst du meinen Bruder Ornn besuchen"; mes "Er hat bestimmt weitere Missionen, wo du ihm helfen kannst."; if( PoringKills == 10 ) { PoringKills = 0; getitem 569,400; getexp 500,300; } else { next; mes "Du hast noch keine 10 Poringe besiegt.!"; mes "Komm wieder wenn du sie besiegt hast.!"; } close; OnNPCKillEvent: if( killedrid == 1002 && PoringKills < 10 ) PoringKills++; end; OnInit: waitingroom "Novice Mission",0; end; }
  3. I never used Gepard so I don't know, but Functor sayed to me once that prob it works.
  4. View File Inject - Allows running dynamic scripts in running time This script commands allow you to "Inject" scripts inside other scripts. But Zell, why I want this? Well, you can use a script code from a SQL table! Imagine that now you can change scripts code blocks without reloading scripts direct from your database or you can even do like me where I'm building scripts from a API! Sample Script: prontera,150,150,5 Script Inject Test 91,{ [email protected] = rand(1, 100); mes "Let's test Inject"; mes "I will declare variable [email protected] as " + [email protected] + "."; mes "My npc id is " + getnpcid(0), " "; mes "[Inject Code Start]", " "; // This script text coud be loaded from a SQL table! Inject( "mes \"Running NPC is \" + getnpcid(0); " + "mes \"Value of [email protected] is \" + [email protected]; " + "next; " + "[email protected] = rand(200, 500); " + "mes \"Now value of [email protected] will be \" + [email protected];" + "close2; " ); mes "[Inject Code End]", " "; mes "Inject was ok and [email protected] is now " + [email protected]; close; } Submitter Zell Submitted 10/31/2020 Category Source Modifications Video Content Author Zell  
  5. Version 1.0.0

    37 downloads

    This script commands allow you to "Inject" scripts inside other scripts. But Zell, why I want this? Well, you can use a script code from a SQL table! Imagine that now you can change scripts code blocks without reloading scripts direct from your database or you can even do like me where I'm building scripts from a API! Sample Script: prontera,150,150,5 Script Inject Test 91,{ [email protected] = rand(1, 100); mes "Let's test Inject"; mes "I will declare variable [email protected] as " + [email protected] + "."; mes "My npc id is " + getnpcid(0), " "; mes "[Inject Code Start]", " "; // This script text coud be loaded from a SQL table! Inject( "mes \"Running NPC is \" + getnpcid(0); " + "mes \"Value of [email protected] is \" + [email protected]; " + "next; " + "[email protected] = rand(200, 500); " + "mes \"Now value of [email protected] will be \" + [email protected];" + "close2; " ); mes "[Inject Code End]", " "; mes "Inject was ok and [email protected] is now " + [email protected]; close; }
    Free
  6. Updates with new video: https://streamable.com/hmg2m2
  7. If you help to get "compliments" back, you are not helping, you are just needy. How many times did you thanks the dev team in 7 years?
  8. Updated Post: [2] Normal Summon Demonstration Test https://streamable.com/eqf3qb
  9. Hey guys, this is my new project, Yu-Gi-Roh! Project is in early develop but I pretend to keep this updated. Some Prints: Videos: [1] Head and Tails Demonstration https://streamable.com/n2gfu8 [2] Normal Summon Demonstration Test https://streamable.com/eqf3qb [3] Phase Pass Test https://streamable.com/hmg2m2 Special thanks to: @SyncMaster for the arena map port and Habib for the Head and Tails gif. If you wish, you can join our discord, but we still does not have support for English, just Portuguese Brazil! https://discord.gg/9YHB9bs
  10. 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  
  11. Version 1.1.0

    99 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
×
×
  • Create New...

Important Information

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