Jump to content
  • 0

Enchanter Script problem


rafapsd

Question


  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  10
  • Reputation:   0
  • Joined:  03/07/14
  • Last Seen:  

Can anyone help me to fix this script? When i choose some option i get petrified and i can't move or do anything. then i use @die and return. 

//===== Cronus Script =======================================
//===== Por: ================================================
//= [Barbiroto]
//===== Versão Atual: =======================================
//= 1.0	- Script Inicializado. [Barbiroto]
//= 1.1 - Adicionado função de checagem de sexo mais clean. [Palito]
//===== Compatível Com: =====================================
//= Cronus / eAthena
//===== Descrição: ==========================================
//= Encanta a Arma com qualquer elemento.
//===== Bugs: ===============================================
//= Não encontrei nenhum.
//===========================================================
sec_in01,163,171,4	script	Encantador	794,{

	set .@npcencantador$,"^0000FF[Encantador]^000000";
	set @PrecoEncantar,100000;	// Preço para encantar a arma

	mes .@npcencantador$;
	mes "Olá ^0000CD"+strcharinfo(0)+"^000000, bem vindo ao ^FF0000[Encantador]^000000, eu posso Encantar a sua Arma com qualquer elemento por 5 minutos!";
	mes "Para encantar sua arma cobrarei "+@PrecoEncantar+"z.";
	next;
	if(select("Sim.:Não.")==2){
		mes .@npcencantador$;
		mes "Volte quando precisar.";
		close;
	}
	if(Zeny < @PrecoEncantar){
		mes .@npcencantador$;
		mes "Você não tem o dinheiro suficiente.";
		close;
	}
	mes .@npcencantador$;
	mes "Qual elemento você quer?";
	set Zeny,Zeny-@PrecoEncantar;
	next;
	switch(select("Geada.:Chama.:Terremoto.:Ventania.:Sagrado.:Maldito.:Sair.")){
	case 1:
		sc_start SC_WATERWEAPON,180000,5;			// 400000 = 1 Minuto: Encantar com Geada, Duração: 5 Minutos, Level 5
		close;
	case 2:
		sc_start SC_FIREWEAPON,180000,5;			// 400000 = 1 Minuto: Encantar com Chama, Duração: 5 Minutos, Level 5
		close;
	case 3:
		sc_start SC_EARTHWEAPON,180000,5;			// 400000 = 1 Minuto: Encantar com Terremoto, Duração: 5 Minutos, Level 5
		close;
	case 4:
		sc_start SC_WINDWEAPON,180000,1;			// 400000 = 1 Minuto: Encantar com Ventania, Duração: 5 Minutos, Level 5
		close;
	case 5:
		sc_start SC_ASPERSIO,2000000,5;				// 400000 = 1 Minuto: Encantar com Sagrado, Duração: 5 Minutos, Level 5
		close;
	case 6:
		sc_start SC_SHADOWWEAPON,2000000,5;			// 400000 = 1 Minuto: Encantar com Maldito, Duração: 5 Minutos, Level 5
		close;
	case 7:
		set Zeny,Zeny+@PrecoEncantar;
		close;
	}
}
Link to comment
Share on other sites

3 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  127
  • Topics Per Day:  0.03
  • Content Count:  1445
  • Reputation:   163
  • Joined:  08/17/13
  • Last Seen:  

i can't understand it at all but i believe the problem are the cons.

 

take a read to this, i hope it will help you

http://svn.rathena.org/svn/rathena/trunk/db/const.txt

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  34
  • Topics Per Day:  0.01
  • Content Count:  281
  • Reputation:   14
  • Joined:  10/14/13
  • Last Seen:  

i can't find anything wrong in the script ...

maybe some buffs are not in your db

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.00
  • Content Count:  48
  • Reputation:   4
  • Joined:  11/27/11
  • Last Seen:  

use break after closes in switch maybe thats the problem .

Edited by Zasura
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...