Jump to content
The forums will be going offline for an extended maintenance period at 1400hrs GMT on 19th June 2025. The number of hours for this downtime is intentionally not advertised due to the nature of these upgrades. ×
  • 0

Recolour akatsuki suit changer


PapaZola

Question


  • Group:  Members
  • Topic Count:  318
  • Topics Per Day:  0.06
  • Content Count:  925
  • Reputation:   33
  • Joined:  12/05/11
  • Last Seen:  

hello

someone can make one npc like this function

on my server have 7 coloured akatsuki

i want make npc change akatsuki to coin

player can choose what akatsuki want to trade

like 2 yellow akatsuki change to 1 coin

like 2 blue akatsuki change to 1 coin

like 2 white akatsuki change to 1 coin

like 2 orange akatsuki change to 1 coin

like 2 pink akatsuki change to 1 coin

like 2 purple akatsuki change to 1 coin

like 2 green akatsuki change to 1 coin

thx

bump

bump

Edited by PapaZola
Link to comment
Share on other sites

4 answers to this question

Recommended Posts


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10018
  • Reputation:   2373
  • Joined:  10/28/11
  • Last Seen:  

erm try this....

prontera,155,181,4 script Sample 757,{
set .ItemLists[0],5001,5002,5003,5004;
set .ItemID,7539;
for( set .@i,0; .@i < getarraysize( .ItemLists ); set .@i,.@i + 1 ){
set .@Menu$, .@Menu$ + getitemname( .ItemLists[.@i] )+":";
}
set .@i,select( .@Menu$ ) - 1;
if( countitem( .ItemLists[.@i] ) < 2 ){
mes "You didnt have enough "+getitemname( .ItemLists[.@i] )+" to trade into "+getitemname( .ItemID )+"...";
}else{
delitem .ItemLists[.@i],2;
getitem .ItemID,1;
mes "Gained 1 "+getitemname( .ItemID )+" by exchange 2"+getitemname( .ItemLists[.@i] )+" .";
}
close;
}

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  318
  • Topics Per Day:  0.06
  • Content Count:  925
  • Reputation:   33
  • Joined:  12/05/11
  • Last Seen:  

not working

i cant click npc

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10018
  • Reputation:   2373
  • Joined:  10/28/11
  • Last Seen:  

change

set .ItemLists[0],5001,5002,5003,5004;

into

setarray .ItemLists[0],5001,5002,5003,5004;

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  318
  • Topics Per Day:  0.06
  • Content Count:  925
  • Reputation:   33
  • Joined:  12/05/11
  • Last Seen:  

thx sir emistry

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