Jump to content
  • 0

Class item giver NPC


DarkWhoteva

Question


  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.00
  • Content Count:  56
  • Reputation:   4
  • Joined:  01/09/12
  • Last Seen:  

Id like a script that when you change classes, you get a certain item, say you change from novice to archer, it gives you a bow + 1000 arrows. if there anything like that?

thanks,

Josh

Link to comment
Share on other sites

9 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  60
  • Topics Per Day:  0.01
  • Content Count:  562
  • Reputation:   219
  • Joined:  11/22/11
  • Last Seen:  

item_db.txt:

blablabla(new Usable item),{ callfunc "Class_item_giver"; },{},{}

script:

function script Class_item_giver {
jobchange 3;
getitem 1701,1;
getitem 1750,1000;
end;
}

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  103
  • Reputation:   28
  • Joined:  09/20/12
  • Last Seen:  

Why create a new item? If you use a jon changer just add getitem itemid,amount for what ever items you want the class to get on jobchange

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  60
  • Topics Per Day:  0.01
  • Content Count:  562
  • Reputation:   219
  • Joined:  11/22/11
  • Last Seen:  

Why create a new item? If you use a jon changer just add getitem itemid,amount for what ever items you want the class to get on jobchange

cause I mistaken it as "use item to change class"

Edited by goddameit
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  103
  • Reputation:   28
  • Joined:  09/20/12
  • Last Seen:  

he can;t use the jobchanger scripted by euphy inside custom/ because uhhh yea,

EUPHY put the old one back, new people to scripting (especially to scripting) will look at that jobchanger and basicaly say uf this, see now I have to write a script for this fella.

or do i *gets the old jobchanger* it worked fine just needed to jobs defined in it.

TO DARK:

you need the following in this request.

What items, How many, do you want it abusable where they can get said item as many times as they want? account related, character related, etc etc etc

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  72
  • Topics Per Day:  0.02
  • Content Count:  2997
  • Reputation:   1131
  • Joined:  05/27/12
  • Last Seen:  

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  31
  • Topics Per Day:  0.01
  • Content Count:  666
  • Reputation:   93
  • Joined:  04/27/12
  • Last Seen:  

I think if Euphy, used an array to store his information and called it that way, it'd be easier and more user friendly. Then we could actually add it as an official script. And also add a check to see if, giving items is enabled. Like:

if(.getitem){getitem .item[.@i],.amount[.@i];}

But you'd need to add the information at the top of the script, or atleast before this appears.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  341
  • Reputation:   43
  • Joined:  01/10/12
  • Last Seen:  

I think if Euphy, used an array to store his information and called it that way, it'd be easier and more user friendly. Then we could actually add it as an official script. And also add a check to see if, giving items is enabled. Like:

if(.getitem){getitem .item[.@i],.amount[.@i];}

But you'd need to add the information at the top of the script, or atleast before this appears.

Agree with this.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  103
  • Reputation:   28
  • Joined:  09/20/12
  • Last Seen:  

Yes, But normal rathena Users, and those coming from eathena do not know how to use arrays, they have rarely been used in the past. Are they documented in scriptcommands?(I haven't looked)

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.00
  • Content Count:  626
  • Reputation:   188
  • Joined:  11/19/11
  • Last Seen:  

Yes, But normal rathena Users, and those coming from eathena do not know how to use arrays, they have rarely been used in the past. Are they documented in scriptcommands?(I haven't looked)

As far as I know they are...

*setarray, etc

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