Jump to content
  • 0

Help about this script


Bringer

Question


  • Group:  Members
  • Topic Count:  162
  • Topics Per Day:  0.04
  • Content Count:  746
  • Reputation:   47
  • Joined:  03/12/14
  • Last Seen:  

	delitem 2227,1;
	delitem 1059,40;
	delitem 978,1;
	delitem 975,1;
	delitem 976,1;
	set Zeny, Zeny - 10000000;
	setarray .@ItemID[0],607,608,512;
	getitem .@ItemID[ rand( getarraysize( .@ItemID ) ) ],1;
	emotion e_grat;
	announce ""+strcharinfo(0)+" has finished the " + ( .@ItemID ) + " ",0;
	close;

i have same costume hat but 9 different effects

 

i want the to announce  what kind of hat is will get

 

i try that .@ItemID but the npc announce id# of the hat not the name of the item like this 

 

GM Drew has finished the Costume:_Rabbit_Headdress_[stats] or Costume:_Rabbit_Headdress_[Elements]

Edited by DrewxD
Link to comment
Share on other sites

8 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  88
  • Reputation:   10
  • Joined:  01/15/16
  • Last Seen:  

Change this line:

announce ""+strcharinfo(0)+" has finished the " + ( .@ItemID ) + " ",0; 

to this:

announce strcharinfo(0)+" has finished the Costume: " + ( getitemname(.@ItemID) ) + " ",0; 

And well, the stats or elements are in a section that you cant show in an announce, because are a script like section in the last lines of the item in the item db, so if in a supposed case you can show it, it will be like a little script that a very little group of users might understand...

Edited by Enthr
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  162
  • Topics Per Day:  0.04
  • Content Count:  746
  • Reputation:   47
  • Joined:  03/12/14
  • Last Seen:  

Change this line:

announce ""+strcharinfo(0)+" has finished the " + ( .@ItemID ) + " ",0; 

to this:

announce strcharinfo(0)+" has finished the Costume: " + ( getitemname(.@ItemID) ) + " ",0; 

And well, the stats or elements are in a section that you cant show in an announce, because are a script like section in the last lines of the item in the item db, so if in a supposed case you can show it, it will be like a little script that a very little group of users might understand...

i already change the  itemdb but still the npc still announce same name

 

26298,Rabbit Headdress [Stats],Rabbit Headdress [Stats],4,0,0,1,,0,,1,0xFFFFFFFF,7,2,1024,,,,2209,{ bonus bAllStats,3; },{},{}
26299,Rabbit Headdress [Elements],Rabbit Headdress [Elements],4,0,0,1,,0,,1,0xFFFFFFFF,7,2,1024,,,,2209,{ bonus2 bSubEle,Ele_Neutral,3; bonus2 bSubEle,Ele_Water,3; bonus2 bSubEle,Ele_Earth,3; bonus2 bSubEle,Ele_Fire,3; bonus2 bSubEle,Ele_Wind,3; bonus2 bSubEle,Ele_Poison,3; bonus2 bSubEle,Ele_Holy,3; bonus2 bSubEle,Ele_Dark,3; bonus2 bSubEle,Ele_Ghost,3; bonus2 bSubEle,Ele_Undead,3; },{},{}
26300,Rabbit Headdress [Reduce],Rabbit Headdress [Reduce],4,0,0,1,,0,,1,0xFFFFFFFF,7,2,1024,,,,2209,{ bonus2 bSubRace,RC_DemiHuman,3; bonus2 bSubRace,RC_Player,3; },{},{}
26301,Rabbit Headdress [Increase],Rabbit Headdress [Increase],4,0,0,1,,0,,1,0xFFFFFFFF,7,2,1024,,,,2209,{ bonus2 bAddRace,RC_DemiHuman,3; bonus2 bAddRace,RC_Player,3; },{},{}
26302,Rabbit Headdress [Magic],Rabbit Headdress [Magic],4,0,0,1,,0,,1,0xFFFFFFFF,7,2,1024,,,,2209,{ bonus bMatkRate,3; },{},{}
26303,Rabbit Headdress [Physical],Rabbit Headdress [Physical],4,0,0,1,,0,,1,0xFFFFFFFF,7,2,1024,,,,2209,{ bonus2 bAddClass,Class_All,3; },{},{}
26304,Rabbit Headdress [HP&SP],Rabbit Headdress [HP&SP],4,0,0,1,,0,,1,0xFFFFFFFF,7,2,1024,,,,2209,{ bonus bMaxHPrate,3; bonus bMaxSPrate,3; },{},{}
26305,Rabbit Headdress [DEF],Rabbit Headdress [DEF],4,0,0,1,,0,,1,0xFFFFFFFF,7,2,1024,,,,2209,{ bonus bDef,5; },{},{}
26306,Rabbit Headdress [MDEF],Rabbit Headdress [MDEF],4,0,0,1,,0,,1,0xFFFFFFFF,7,2,1024,,,,2209,{ bonus bMdef,5; },{},{}
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  88
  • Reputation:   10
  • Joined:  01/15/16
  • Last Seen:  

did you reload the itemdb? you can do it with @reloaditemdb

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  162
  • Topics Per Day:  0.04
  • Content Count:  746
  • Reputation:   47
  • Joined:  03/12/14
  • Last Seen:  

did you reload the itemdb? you can do it with @reloaditemdb

yes i did

12746236_902646786518472_1314725717_n.jp

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  88
  • Reputation:   10
  • Joined:  01/15/16
  • Last Seen:  

I see the correct name, is your problem solved?


Ah, i think what the problem is, sorry...

¿You tried to restart the server...?

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  45
  • Topics Per Day:  0.01
  • Content Count:  715
  • Reputation:   83
  • Joined:  01/05/12
  • Last Seen:  

Change Rabbit Headdress [stats] to Costume: Rabbit Headdress [DEF]

26298,Rabbit Headdress [Stats],Rabbit Headdress [Stats],4,0,0,1,,0,,1,0xFFFFFFFF,7,2,1024,,,,2209,{ bonus bAllStats,3; },{},{}

to

26298,Rabbit Headdress [Stats],Costume: Rabbit Headdress [DEF],4,0,0,1,,0,,1,0xFFFFFFFF,7,2,1024,,,,2209,{ bonus bAllStats,3; },{},{}

and @reloaditemdb

Edited by Lelouch vi Britannia
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  162
  • Topics Per Day:  0.04
  • Content Count:  746
  • Reputation:   47
  • Joined:  03/12/14
  • Last Seen:  

I see the correct name, is your problem solved?

Ah, i think what the problem is, sorry...

¿You tried to restart the server...?

the problem announce hehe awlwys name announce

I see the correct name, is your problem solved?

Ah, i think what the problem is, sorry...

¿You tried to restart the server...?

the problem announce hehe awlwys same announce
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  35
  • Topics Per Day:  0.01
  • Content Count:  109
  • Reputation:   2
  • Joined:  06/04/13
  • Last Seen:  

Is the item name same with the name in your item.lub. coz what's in the item.lub will appear even if you change the name in your item.db

Edited by MusiLiciouS
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...