Jump to content
  • 0

H>Weapon Mastery from Stolao


chryxt

Question


  • Group:  Members
  • Topic Count:  14
  • Topics Per Day:  0.00
  • Content Count:  36
  • Reputation:   0
  • Joined:  05/06/15
  • Last Seen:  

So, i got this from Stolao's script collection
https://github.com/Stolao/Npc_Release/blob/master/Weapon_Mastery/WeaponMastery_v1.20.txt

I tried it on my live server but got error message like this

1. [Error]: Missing 1 right curlys at file 'npc/custom/League MainTown/weaponmastery.txt', line '320'.
 

2. [Error]:  Loading NPC file: npc/custom/League MainTown/weaponmastery.txt
script error on npc/custom/League MainTown/weaponmastery.txt line 138
    parse_simpleexpr: unmatched ')'
   133 : {
   134 : end;
   135 : OnWeaponInfo:
   136 :        set .@M$,.@atcmd_parameters$[0];
   137 :        if((.@M$ == "")){
*  138 :                if(getequipid(EQI_HAND_R)'{' set .@ei,getiteminfo(getequipid(EQI_HAND_R),11);
   139 :                } else { set .@ei,-1; }
   140 :                switch(.@ei){
   141 :                        case 3:         case 6:         case 7:         case 8:
   142 :                        case 9:         case 12:                                        set .@M$,"Onslaught";      Break;
   143 :                        case 0:         case 1:         case 16:        case 22:        set .@M$,"Swiftness";      Break;
 

3. [Error]: npc_parsesrcfile: Unknown syntax in file 'npc/custom/League MainTown/weaponmastery.txt',          line '150'. Stopping...
 * w1=if(.@M$ == "Onslaught" || .@M$ == "onslaught" || .@M$ == "OnSlaught") set .@i,1;
 * w2=
 * w3=
 * w4=

im stuck, can anyone fix it and make it work?
Thanks before :)

 

Link to comment
Share on other sites

5 answers to this question

Recommended Posts


  • Group:  Developer
  • Topic Count:  48
  • Topics Per Day:  0.01
  • Content Count:  1443
  • Reputation:   337
  • Joined:  10/17/12
  • Last Seen:  

 

sec ill fix and update my git

Edit: this was already fixed in 1.22 which i updated 29 days ago... please use most current version

Thanks so much ^^ its working now

but you're txt missing

1 right curly at line 314 and ";" at line 140 (else { set .@ei,-1; }

and its all work fine :)

Thank you for your help

 

also updated today to v1.26

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  23
  • Topics Per Day:  0.01
  • Content Count:  387
  • Reputation:   60
  • Joined:  10/08/13
  • Last Seen:  

prontera,5,5,5	script	PCSTATCALC	111,{
end;
OnWeaponInfo:
	set .@M$,.@atcmd_parameters$[0];
	if((.@M$ == "")){
		if(getequipid(EQI_HAND_R) set .@ei,getiteminfo(getequipid(EQI_HAND_R),11);
		} else { set .@ei,-1; }
		switch(.@ei){
			case 3:  	case 6: 	case 7: 	case 8:	
			case 9:		case 12:					set .@M$,"Onslaught";	Break;
			case 0: 	case 1: 	case 16:	case 22:	set .@M$,"Swiftness";	Break;
			case 2: 	case 4: 	case 5:		case -1:	set .@M$,"Safegaurd";	Break;
			case 11:	case 13:	case 14:	case 17:
			case 18:	case 19:	case 20:	case 21:	set .@M$,"Ranged";	Break;
			case 10:	case 15:	case 23:	case 24:	set .@M$,"Mystical";	Break;
		}
	}

didnt try yet. not on my station right now

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  14
  • Topics Per Day:  0.00
  • Content Count:  36
  • Reputation:   0
  • Joined:  05/06/15
  • Last Seen:  

prontera,5,5,5	script	PCSTATCALC	111,{
end;
OnWeaponInfo:
	set .@M$,.@atcmd_parameters$[0];
	if((.@M$ == "")){
		if(getequipid(EQI_HAND_R) set .@ei,getiteminfo(getequipid(EQI_HAND_R),11);
		} else { set .@ei,-1; }
		switch(.@ei){
			case 3:  	case 6: 	case 7: 	case 8:	
			case 9:		case 12:					set .@M$,"Onslaught";	Break;
			case 0: 	case 1: 	case 16:	case 22:	set .@M$,"Swiftness";	Break;
			case 2: 	case 4: 	case 5:		case -1:	set .@M$,"Safegaurd";	Break;
			case 11:	case 13:	case 14:	case 17:
			case 18:	case 19:	case 20:	case 21:	set .@M$,"Ranged";	Break;
			case 10:	case 15:	case 23:	case 24:	set .@M$,"Mystical";	Break;
		}
	}

didnt try yet. not on my station right now

 

 

still error + 1 more error

[Error]:  Loading NPC file: npc/custom/League MainTown/weaponmastery.txt

script error on npc/custom/League MainTown/weaponmastery.txt line 138

    parse_simpleexpr: unmatched ')'

   133 : {

   134 : end;

   135 : OnWeaponInfo:

   136 :        set .@M$,.@atcmd_parameters$[0];

   137 :        if((.@M$ == "")){

*  138 :                if(getequipid(EQI_HAND_R) 's'et .@ei,getiteminfo(getequipid(EQI_HAND_R),11);

   139 :                } else { set .@ei,-1; }

   140 :                switch(.@ei){

   141 :                        case 3:         case 6:         case 7:         case 8:

   142 :                        case 9:         case 12:                                        set .@M$,"Onslaught";      Break;

   143 :                        case 0:         case 1:         case 16:        case 22:        set .@M$,"Swiftness";      Break;

[Error]: npc_parsesrcfile: Unknown syntax in file 'npc/custom/League MainTown/weaponmastery.txt', line '150'. Stopping...

 * w1=}

 * w2=

 * w3=

 * w4=

 

btw, thanks for answering :)

Link to comment
Share on other sites


  • Group:  Developer
  • Topic Count:  48
  • Topics Per Day:  0.01
  • Content Count:  1443
  • Reputation:   337
  • Joined:  10/17/12
  • Last Seen:  

sec ill fix and update my git

Edit: this was already fixed in 1.22 which i updated 29 days ago... please use most current version

Edited by Stolao
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  14
  • Topics Per Day:  0.00
  • Content Count:  36
  • Reputation:   0
  • Joined:  05/06/15
  • Last Seen:  

sec ill fix and update my git

Edit: this was already fixed in 1.22 which i updated 29 days ago... please use most current version

Thanks so much ^^ its working now

but you're txt missing

1 right curly at line 314 and ";" at line 140 (else { set .@ei,-1; }

and its all work fine :)

Thank you for your help

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...