Jump to content
  • 0

Can someone modified this script?


iAmRiki

Question


  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.00
  • Content Count:  35
  • Reputation:   0
  • Joined:  01/05/12
  • Last Seen:  

prontera,75,113,4 script Newbie NPC 862,{
if(##babi == 1) goto L_1;
mes "Welcome To Our Ragnarok Online " + strcharinfo(0) + " !!";
next;
mes "So You Is A New Player Here Right?";
next;
mes "Take My Reward Now And Have Fun With Our Ragnarok Online";
next;
set Zeny,zeny+1000000;
getitem 2357,1;
getitem 2524,1;
getitem 2421,1;
getitem 2115,1;
getitem 1530,1;
getitem 2629,1;
getitem 4145,1;
getitem 12900,1;
getitem 7539,800;
getitem 5013,1;
getitem 1999,1;
announce "We Have New Player Join Our Server. His/Her Name [ "+strcharinfo(0)+" ] !!",2;
emotion e_thx;
set ##babi,1;
close;
L_1:
mes "Hey! you Already Get Reward From Me.";
mes "Sorry I Cant Give You Anymore Again More Than 1 Times.";
next;
mes "I dont Care If You Crying Or Not. Tell You Mom Also Me not Scare~wu!!";
emotion e_bzz;
close;
OnInit:
waitingroom "Newbie Gift",0;
end;

}

I need to modified this script into the 3rd job item.. i mean.. when the player changejob tu rune knight then they click this npc then they will get the third job item.. and some one help me?

Thanks and sorry my bad english.

Link to comment
Share on other sites

17 answers to this question

Recommended Posts


  • Group:  Forum Moderator
  • Topic Count:  33
  • Topics Per Day:  0.01
  • Content Count:  1268
  • Reputation:   382
  • Joined:  02/03/12
  • Last Seen:  

prontera,155,181,5 script Sample 757,{
if( thirdJobItems ){
mes "You have gained the Item before.";
} else {
switch( BaseJob ){
Case Job_Knight:
set .ItemID,7539; break;
Case Job_Priest:
set .ItemID,7539; break;
Case Job_Wizard:
set .ItemID,7539; break;
Case Job_Blacksmith:
set .ItemID,7539; break;
Case Job_Hunter:
set .ItemID,7539; break;
Case Job_Assassin:
set .ItemID,7539; break;
Case Job_Crusader:
set .ItemID,7539; break;
Case Job_Monk:
set .ItemID,7539; break;
Case Job_Sage:
set .ItemID,7539; break;
Case Job_Rogue:
set .ItemID,7539; break;
Case Job_Alchemist:
set .ItemID,7539; break;
Case Job_Bard:
set .ItemID,7539; break;
Case Job_Dancer:
set .ItemID,7539; break;
default:
mes "Nothing you can take..";
close;
}
getitem .ItemID,1;
mes "You have gained 1 "+getitemname( .ItemID )+".";
set thirdJobItems,1;
}
close;
}

Can't use numbers at the start of a variable.

Edited by Skorm
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  206
  • Reputation:   16
  • Joined:  01/03/12
  • Last Seen:  

What do you mean third job item? Please specify a little bit more.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.00
  • Content Count:  35
  • Reputation:   0
  • Joined:  01/05/12
  • Last Seen:  

What do you mean third job item? Please specify a little bit more.

Example. When the player change job to 3rd class then they must click this npc to claim the 3rd class item/reward for once click only.

example : If the player char Rangers when he click this npc he will get the Flute ( #item id 6124) and Sniper_google ( #item id 5748) .. and other 3rd job char also can get their 3rd class item when click this.

is it possible sir?

Thanks.

Edited by iAmRiki
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.00
  • Content Count:  35
  • Reputation:   0
  • Joined:  01/05/12
  • Last Seen:  

Yes it is, using eaclass to check the class of the character.

hmm im too noob about this making script. can someone make me example script :D

Please some one help me /swt(

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  82
  • Reputation:   11
  • Joined:  01/01/12
  • Last Seen:  

You wan't it to broadcast there's a new player after he becomes 3rd job lol?

Lol the dialog in this script is so unprofessional

Edited by Obliterate
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  206
  • Reputation:   16
  • Joined:  01/03/12
  • Last Seen:  

You wan't it to broadcast there's a new player after he becomes 3rd job lol?

Lol the dialog in this script is so unprofessional

Well it seems like so according to his script, I wouldn't personally do so but that's just me.
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  82
  • Reputation:   11
  • Joined:  01/01/12
  • Last Seen:  

I'll make it... but please confirm how you want it to work

1. Player levels up and changes to a third class job.

2. The player then clicks the npc.

3. The npc checks the job of the player if he's a third class then give him the "item"

4. It will then broadcast a welcome message for the player

5. if the player used the npc he gets a messages saying he already collected his reward.

Edited by Obliterate
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.00
  • Content Count:  35
  • Reputation:   0
  • Joined:  01/05/12
  • Last Seen:  

I'll make it... but please confirm how you want it to work

1. Player levels up and changes to a third class job.

2. The player then clicks the npc.

3. The npc checks the job of the player if he's a third class then give him the "item"

4. It will then broadcast a welcome message for the player

5. if the player used the npc he gets a messages saying he already collected his reward.

it seem like this sir :-

*when the player become third class them they can claim the item at this npc.. example job rangers if click this npc then they can claim Flute and Sniper Google and others job too can claim their 3rd class item.

1. Player levels up and changes to a third class job.

2. The player then clicks the npc.

3. The npc checks the job of the player if he's a third class then give him the "item"

4. It will then broadcast a welcome message for the player

5. if the player used the npc he gets a messages saying he already collected his reward.

6. only can claim the reward once per char only not per ID.

is it possible sir?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  82
  • Reputation:   11
  • Joined:  01/01/12
  • Last Seen:  

Yes it is very possible

I'll work on this later but atm I'm busy

Link to comment
Share on other sites


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

try this

prontera,155,181,5 script Sample 757,{
if( 3rdJobItems ){
mes "You have gained the Item before.";
}else{
switch( BaseJob ){
 Case Job_Knight: set .ItemID,7539; break;
 Case Job_Priest: set .ItemID,7539; break;
 Case Job_Wizard: set .ItemID,7539; break;
 Case Job_Blacksmith: set .ItemID,7539; break;
 Case Job_Hunter: set .ItemID,7539; break;
 Case Job_Assassin: set .ItemID,7539; break;
 Case Job_Crusader: set .ItemID,7539; break;
 Case Job_Monk: set .ItemID,7539; break;
 Case Job_Sage: set .ItemID,7539; break;
 Case Job_Rogue: set .ItemID,7539; break;
 Case Job_Alchemist: set .ItemID,7539; break;
 Case Job_Bard: set .ItemID,7539; break;
 Case Job_Dancer: set .ItemID,7539; break;
 default:
  mes "Nothing you can take..";
  close;
}
getitem .ItemID,1;
mes "You have gained 1 "+getitemname( .ItemID )+".";
set 3rdJobItems,1;
}
close;
}

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.00
  • Content Count:  35
  • Reputation:   0
  • Joined:  01/05/12
  • Last Seen:  

try this

prontera,155,181,5 script Sample 757,{
if( 3rdJobItems ){
mes "You have gained the Item before.";
}else{
switch( BaseJob ){
 Case Job_Knight: set .ItemID,7539; break;
 Case Job_Priest: set .ItemID,7539; break;
 Case Job_Wizard: set .ItemID,7539; break;
 Case Job_Blacksmith: set .ItemID,7539; break;
 Case Job_Hunter: set .ItemID,7539; break;
 Case Job_Assassin: set .ItemID,7539; break;
 Case Job_Crusader: set .ItemID,7539; break;
 Case Job_Monk: set .ItemID,7539; break;
 Case Job_Sage: set .ItemID,7539; break;
 Case Job_Rogue: set .ItemID,7539; break;
 Case Job_Alchemist: set .ItemID,7539; break;
 Case Job_Bard: set .ItemID,7539; break;
 Case Job_Dancer: set .ItemID,7539; break;
 default:
  mes "Nothing you can take..";
  close;
}
getitem .ItemID,1;
mes "You have gained 1 "+getitemname( .ItemID )+".";
set 3rdJobItems,1;
}
close;
}

i cant click this npc.. seem got some error

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  28
  • Topics Per Day:  0.01
  • Content Count:  218
  • Reputation:   16
  • Joined:  01/24/12
  • Last Seen:  

Emistry forgot to put the 3rdJobItems == 1. xDD Try this one

prontera,155,181,5 script Sample 757,{

if( 3rdJobItems == 1 ){

mes "You have gained the Item before.";

}else{

switch( BaseJob ){

Case Job_Knight: set .ItemID,7539; break;

Case Job_Priest: set .ItemID,7539; break;

Case Job_Wizard: set .ItemID,7539; break;

Case Job_Blacksmith: set .ItemID,7539; break;

Case Job_Hunter: set .ItemID,7539; break;

Case Job_Assassin: set .ItemID,7539; break;

Case Job_Crusader: set .ItemID,7539; break;

Case Job_Monk: set .ItemID,7539; break;

Case Job_Sage: set .ItemID,7539; break;

Case Job_Rogue: set .ItemID,7539; break;

Case Job_Alchemist: set .ItemID,7539; break;

Case Job_Bard: set .ItemID,7539; break;

Case Job_Dancer: set .ItemID,7539; break;

default:

mes "Nothing you can take..";

close;

}

getitem .ItemID,1;

mes "You have gained 1 "+getitemname( .ItemID )+".";

set 3rdJobItems,1;

}

close;

}

Edited by Eden
Link to comment
Share on other sites


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

Emistry forgot to put the 3rdJobItems == 1. xDD Try this one

it is the same...whether i put or not put..it is the same...

because before you take the items...

the value stored in that variable is zero..

if a variable is checking...and a number is not given for checking..

it mean the variable have a value and not equal to zero...

@riki

check for any possible error that might shown

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  138
  • Topics Per Day:  0.03
  • Content Count:  835
  • Reputation:   25
  • Joined:  11/22/11
  • Last Seen:  

u can't click because u missing tab i think?

prontera,155,181,5[tab]script[tab]Sample[tab]757,{

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.00
  • Content Count:  35
  • Reputation:   0
  • Joined:  01/05/12
  • Last Seen:  

Emistry forgot to put the 3rdJobItems == 1. xDD Try this one

it is the same...whether i put or not put..it is the same...

because before you take the items...

the value stored in that variable is zero..

if a variable is checking...and a number is not given for checking..

it mean the variable have a value and not equal to zero...

@riki

check for any possible error that might shown

i already @reloadnpc this script then npc cant click. i already check if got some error, i think dont have any error but npc cant click.. can help me to solve this?

BUMP.. please help :D

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