-
Content Count
114 -
Joined
-
Last visited
-
Days Won
6
Content Type
Profiles
Forums
Downloads
Staff Applications
Calendar
Everything posted by luizragna
-
Hello guys, How can I count the slots not available in the item? Ex: I have a Sword[1] (indifferent if have equipped or not). How rhe script cant count the 3 not avalibies slots?
-
(Estou vendo que você é BR, então vou falar português mesmo. Hahah) Cria um mob usando comandos de controle de unidade. Vou te dar algumas ideias: Criando a unidade: .mob[0] = monster ("payon", 159,222, "[DG] Poporing", 1031, 1); setunitdata .mob[0],UDT_LEVEL,12; setunitdata .mob[0],UDT_MAXHP,50000; setunitdata .mob[0],UDT_HP,50000; Essa é a unidade .mob[0] ↑ ↑ ↑ Para fazê-lá andar você usa o comando: *unitwalk(<GID>, <x>, <y>) exemplo: unitwalk(.mob[0], 150, 222; Então vc pocura os comandos relacionados a unit em conf/script_commands.txt Para as skills você pode usar o comando areamobuseskill
-
Failed to create an instance (help to install a script)
luizragna replied to HyperSonic2097's question in General Server Support
Do you added in conf/map/maps.conf ? -
Script command execute for all players in the server?
luizragna replied to luizragna's question in Script Support
@meko, i ttried to, but in this command must quote a map -
How i do it? Ex: percentheal 100,100;
-
Você também pode usar a label custom OnAttackMob: https://forum.cronus-emulator.com/files/file/1355-custom-label-onattackmob-3-variáveis-especiais/ Ai usa os comandos playsound e o rand()
-
How i do it with @hide ? (or script command)
-
Thanks for idea @Habilis
-
Hello guys. The NPC are using the same variables. - script Tester FAKE_NPC,{ if (.ok == 0) { mes "Hello"; set .ok,1; // or .ok = 1; } else mes "I already talked to you"; close(); } prt_sewb1,154,268,4 duplicate(Tester) Tester#1 84 prt_sewb1,160,268,4 duplicate(Tester) Tester#2 84 When i talk a NPC, the other say: "I already talked to you". So, they uses the same variable [ .ok ] how i can change this??
-
Strange, does some error appear somewhere?
-
He makes a mob with a HP Bar. Do you added the data files?
-
Solved: *setnpcdisplay("<npc name>", "<display name>", <class id>, <size>) *setnpcdisplay("<npc name>", "<display name>", <class id>) *setnpcdisplay("<npc name>", "<display name>") *setnpcdisplay("<npc name>", <class id>) Changes the display name and/or display class of the target NPC. Returns 0 is successful, 1 if the NPC does not exist. Size is 0 = normal 1 = small 2 = big.
-
Hello guys, i want change sprite NPC like a this video: (in 0:29)
-
Yes, the illust folder don't like subfolders I improved the topic to avoid problems
-
Do you put the images in your data? (and not in GRF)
-
@Rytech What full client version i must use to test star emperor and soul reaper?
-
Cara procura no youtube que tem uns tutoriais atualizados. (só não mando o link pq nao testei nenhum deles) Em relação aos erros de lua files, é incompatibilidade do hexed com os arquivos. pode ser tbm que o hexed esteja diffado com Load LUA from LUB
-
Em vez de changebase usa o comando disguise. Ex: OnEquipScript: <" disguise (4060); "> OnUnequipScript: <" setoption(8,0); undisguise(); ">
-
try add In: src/map/constants.inc script->set_constant("SI_MYSTATUS", SI_MYSTATUS, false, false); Change MYSTATUS to your status name
-
Solved! I added this line in the main script: if ( instance_attachmap( "guild_vs3", .@ins, 1, .@ins +"RAID3" ) == "" ) { mes "error : 6"; instance_destroy .@ins; close; } And to warp: warpparty has_instance("guild_vs2"), 0,0, getcharid(CHAR_ID_PARTY), strnpcinfo(4);
-
@Winterfox when i tryied, the console show:
-
Hello guys, how i can warp the instance for other map? I whant that i kill the big foot, the instance warp to guild_vs3 Main Script: prontera,156,189,5 script Raid 1_F_MARIA,{ mes "Conquista de três"; next; if ( !getcharid(CHAR_ID_PARTY) ) { mes "Você deve formar um grupo para participar."; close; } if ( getpartyleader( getcharid(CHAR_ID_PARTY), 2 ) != getcharid(CHAR_ID_CHAR) ) { mes "Apenas o líder do grupo pode iniciar."; close; } .@origin = getcharid(CHAR_ID_ACCOUNT); getpartymember getcharid(CHAR_ID_PARTY), 1; getpartymember getcharid(CHAR_ID_PARTY), 2; for ( .@i = 0; .@i < $@partymembercount; ++.@i ) { if ( isloggedin( $@partymemberaid[.@i], $@partymembercid[.@i] ) ) { attachrid $@partymemberaid[.@i]; if ( strcharinfo(PC_MAP) == strnpcinfo(NPC_MAP) ) .@online++; } } attachrid .@origin; if ( $@partymembercount != .register_min ) { mes "[MvP Ladder Warper]"; mes "Você deve formar um grupo de "+ .register_min +" membror para play."; close; } else if ( .@online != .register_min ) { mes "[MvP Ladder Warper]"; mes "Seu grupo deve possuír "+ .register_min +" membros online no mapa '"+ strnpcinfo(4) +"'."; close; } if ( ( .@ins = instance_create( "Raid Dungeon", getcharid(CHAR_ID_PARTY), IOT_PARTY ) ) < 0 ) { mes "error : "+ .@ins; close; } if ( instance_attachmap( "guild_vs2", .@ins, 1, .@ins +"RAID" ) == "" ) { mes "error : 5"; instance_destroy .@ins; close; } instance_set_timeout 3600, 15, .@ins; instance_init .@ins; instance_attach .@ins; 'hue = 1; warpparty has_instance("guild_vs2"), 0,0, getcharid(CHAR_ID_PARTY), strnpcinfo(4); end; OnInit: .register_min = 1; end; } Instance Level 1: guild_vs2,0,0,0 script TesteDG FAKE_NPC,{ OnInstanceInit: monster (("guild_vs2"), 0,0, "Bigfoot.", 1603, 1, instance_npcname( strnpcinfo(NPC_NAME) )+"::OnMobDead"); end; OnMobDead: end; OnInit: disablenpc(""+strnpcinfo(NPC_NAME)+""); } Instance Level 2: (how i can warp to here?) guild_vs3,0,0,0 script TesteDG#2 FAKE_NPC,{ OnInstanceInit: monster (("guild_vs3"), 0,0, "Lunatic", 1591, 1, instance_npcname( strnpcinfo(NPC_NAME) )+"::OnMobDead"); end; OnMobDead: end; OnInit: disablenpc(""+strnpcinfo(NPC_NAME)+""); }
-
Thanks @AnnieRuru for:
-
Hello guys! How can I turn this individual instance into a party instance? (where only the leader can start) job_wiz,119,109,4 script Guia Solo 8_F_GIRL,{ if ( has_instance2("dungeon") >= 0 ) { // dispbottom has_instance2("dungeon") +" destroy"; instance_destroy has_instance2("dungeon"); } if ( ( .@ins = instance_create( ""+strnpcinfo(NPC_NAME)+"", getcharid(CHAR_ID_ACCOUNT), IOT_CHAR ) ) < 0 ) { mes "error : "+ .@ins; close; } if ( !getstrlen( instance_attachmap( "dungeon", .@ins, true, ( getcharid(CHAR_ID_ACCOUNT) )+"INST" ) ) ) { mes "error : 5"; instance_destroy .@ins; close; } instance_set_timeout 3600, 15, .@ins; instance_init .@ins; warp has_instance("dungeon"), 69,47; end; }