Jump to content
  • 0

R>GM Reward NPC


myieee

Question


  • Group:  Members
  • Topic Count:  34
  • Topics Per Day:  0.01
  • Content Count:  83
  • Reputation:   0
  • Joined:  12/07/11
  • Last Seen:  

can I please request for a reward giver script that works like this:
 

- GM will click the npc

- NPC will ask for the name of the player..

- when GM type the name of the player it will automatically give the player the reward (item 7720 or 7227) and announce the GM Name and this player is the winner of the event and got 5 Event coins or TCG Card..

- work  for gm level 1and up..

- if the GM typed the wrong name.. it will give gm a message to try again.. 

Edited by myieee
Link to comment
Share on other sites

10 answers to this question

Recommended Posts

  • 0

  • Group:  Developer
  • Topic Count:  36
  • Topics Per Day:  0.01
  • Content Count:  587
  • Reputation:   431
  • Joined:  01/26/16
  • Last Seen:  


prontera,163,173,4 script GM Helper 4_F_VALKYRIE,{

if(getgmlevel()<1)end;

mes "[GM Helper]";

mes "Enter char name";

next;

while(!.@id) {

input .@name$;

.@id = getcharid(3,.@name$);

mes "[GM Helper]";

if(!.@id) {

mes "Character not online. Please try again";

next;

continue;

}

}

getitem 7720,5;

mes "Given reward to " + .@name$;

announce .@name$ + " is the winner of the event and has gotten 5 event coins as a reward!",bc_all;

close;

}

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  34
  • Topics Per Day:  0.01
  • Content Count:  83
  • Reputation:   0
  • Joined:  12/07/11
  • Last Seen:  

i got error in this line

 

 

.@id = getcharid(3,.@name$);


bump

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  14
  • Topics Per Day:  0.00
  • Content Count:  63
  • Reputation:   1
  • Joined:  09/18/12
  • Last Seen:  

What if the player talks again to the NPC, s/he will again get a reward?

Wouldn't be any abuse on it?

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.00
  • Content Count:  208
  • Reputation:   22
  • Joined:  01/14/13
  • Last Seen:  

 

can I please request for a reward giver script that works like this:

 

- GM will click the npc

- NPC will ask for the name of the player..

- when GM type the name of the player it will automatically give the player the reward (item 7720 or 7227) and announce the GM Name and this player is the winner of the event and got 5 Event coins or TCG Card..

- work  for gm level 1and up..

- if the GM typed the wrong name.. it will give gm a message to try again.. 

 

Hello :) Try this :) i already fixed and set gm lvl to 80 you can edit that to any gm lvl :D:) but don't make it 0 because 0 is equal normal player.

 

prontera,163,173,4	script	GM Helper	980,{	
if( getgmlevel() < 80 ) {
mes "You are not a GM with level 80 or higher, GTFO!";
close;
}
set .@Gm$,"[GM Helper]";

digit:
mes "Hello GM "+strcharinfo(0)+", what do you wish to do?";
next;
switch( select ("Set a winner","Exit")) {

	case 1:
	mes .@Gm$;
	mes "Enter char name";
	next;
	while(!.@id) {
		input .@name$;
		mes "[GM Helper]";
		set .@id,getcharid(3,.@name$);
		if(!.@id) {
			mes "Character not online. Please try again";
			next;
			continue;
		}
	}
	mes "["+.@name$+"] is correct?";
	if( select ("Yes:No") == 2) close;
	if( isloggedin(getcharid(3,.@name$))) getitem 7720,5,getcharid(3,.@name$);
	mes "Given reward to " + .@name$;
	announce .@name$ + " is the winner of the event and has won a reward!",bc_all;
	close;
	break;
	
	case 2:
	mes .@Gm$;
	mes "Nothing to do.";
	close;
	break;
}
}

Have fun please give me feed back.

 

What if the player talks again to the NPC, s/he will again get a reward?

Wouldn't be any abuse on it?

No normal player can't talk to this npc because it's set up on gm level :).

Edited by hikashin-rae
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  14
  • Topics Per Day:  0.00
  • Content Count:  63
  • Reputation:   1
  • Joined:  09/18/12
  • Last Seen:  

 

 

can I please request for a reward giver script that works like this:

 

- GM will click the npc

- NPC will ask for the name of the player..

- when GM type the name of the player it will automatically give the player the reward (item 7720 or 7227) and announce the GM Name and this player is the winner of the event and got 5 Event coins or TCG Card..

- work  for gm level 1and up..

- if the GM typed the wrong name.. it will give gm a message to try again.. 

 

Hello :) Try this :) i already fixed and set gm lvl to 80 you can edit that to any gm lvl :D:) but don't make it 0 because 0 is equal normal player.

 

prontera,163,173,4	script	GM Helper	980,{	
if( getgmlevel() < 80 ) {
mes "You are not a GM with level 80 or higher, GTFO!";
close;
}
set .@Gm$,"[GM Helper]";

digit:
mes "Hello GM "+strcharinfo(0)+", what do you wish to do?";
next;
switch( select ("Set a winner","Exit")) {

	case 1:
	mes .@Gm$;
	mes "Enter char name";
	next;
	while(!.@id) {
		input .@name$;
		mes "[GM Helper]";
		set .@id,getcharid(3,.@name$);
		if(!.@id) {
			mes "Character not online. Please try again";
			next;
			continue;
		}
	}
	mes "["+.@name$+"] is correct?";
	if( select ("Yes:No") == 2) close;
	if( isloggedin(getcharid(3,.@name$))) getitem 7720,5,getcharid(3,.@name$);
	mes "Given reward to " + .@name$;
	announce .@name$ + " is the winner of the event and has won a reward!",bc_all;
	close;
	break;
	
	case 2:
	mes .@Gm$;
	mes "Nothing to do.";
	close;
	break;
}
}

Have fun please give me feed back.

 

What if the player talks again to the NPC, s/he will again get a reward?

Wouldn't be any abuse on it?

No normal player can't talk to this npc because it's set up on gm level :).

 

Thank you for confirming, or I shall hijack this thread to ask if 'what if' the player will get a reward from the NPC so GM can just leave the prize to the NPC for the player to get but won't again get the prize once the player has already received it? I'm new with scripting..

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.00
  • Content Count:  208
  • Reputation:   22
  • Joined:  01/14/13
  • Last Seen:  

 

 

 

can I please request for a reward giver script that works like this:

 

- GM will click the npc

- NPC will ask for the name of the player..

- when GM type the name of the player it will automatically give the player the reward (item 7720 or 7227) and announce the GM Name and this player is the winner of the event and got 5 Event coins or TCG Card..

- work  for gm level 1and up..

- if the GM typed the wrong name.. it will give gm a message to try again.. 

 

Hello :) Try this :) i already fixed and set gm lvl to 80 you can edit that to any gm lvl :D:) but don't make it 0 because 0 is equal normal player.

 

prontera,163,173,4	script	GM Helper	980,{	
if( getgmlevel() < 80 ) {
mes "You are not a GM with level 80 or higher, GTFO!";
close;
}
set .@Gm$,"[GM Helper]";

digit:
mes "Hello GM "+strcharinfo(0)+", what do you wish to do?";
next;
switch( select ("Set a winner","Exit")) {

	case 1:
	mes .@Gm$;
	mes "Enter char name";
	next;
	while(!.@id) {
		input .@name$;
		mes "[GM Helper]";
		set .@id,getcharid(3,.@name$);
		if(!.@id) {
			mes "Character not online. Please try again";
			next;
			continue;
		}
	}
	mes "["+.@name$+"] is correct?";
	if( select ("Yes:No") == 2) close;
	if( isloggedin(getcharid(3,.@name$))) getitem 7720,5,getcharid(3,.@name$);
	mes "Given reward to " + .@name$;
	announce .@name$ + " is the winner of the event and has won a reward!",bc_all;
	close;
	break;
	
	case 2:
	mes .@Gm$;
	mes "Nothing to do.";
	close;
	break;
}
}

Have fun please give me feed back.

 

What if the player talks again to the NPC, s/he will again get a reward?

Wouldn't be any abuse on it?

No normal player can't talk to this npc because it's set up on gm level :).

 

Thank you for confirming, or I shall hijack this thread to ask if 'what if' the player will get a reward from the NPC so GM can just leave the prize to the NPC for the player to get but won't again get the prize once the player has already received it? I'm new with scripting..

 

Hmmmm i think that's be like like  automated event :).. like if he talk to npc then warp outside. :D

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  34
  • Topics Per Day:  0.01
  • Content Count:  83
  • Reputation:   0
  • Joined:  12/07/11
  • Last Seen:  

 

 

can I please request for a reward giver script that works like this:

 

- GM will click the npc

- NPC will ask for the name of the player..

- when GM type the name of the player it will automatically give the player the reward (item 7720 or 7227) and announce the GM Name and this player is the winner of the event and got 5 Event coins or TCG Card..

- work  for gm level 1and up..

- if the GM typed the wrong name.. it will give gm a message to try again.. 

 

Hello :) Try this :) i already fixed and set gm lvl to 80 you can edit that to any gm lvl :D:) but don't make it 0 because 0 is equal normal player.

 

prontera,163,173,4	script	GM Helper	980,{	
if( getgmlevel() < 80 ) {
mes "You are not a GM with level 80 or higher, GTFO!";
close;
}
set .@Gm$,"[GM Helper]";

digit:
mes "Hello GM "+strcharinfo(0)+", what do you wish to do?";
next;
switch( select ("Set a winner","Exit")) {

	case 1:
	mes .@Gm$;
	mes "Enter char name";
	next;
	while(!.@id) {
		input .@name$;
		mes "[GM Helper]";
		set .@id,getcharid(3,.@name$);
		if(!.@id) {
			mes "Character not online. Please try again";
			next;
			continue;
		}
	}
	mes "["+.@name$+"] is correct?";
	if( select ("Yes:No") == 2) close;
	if( isloggedin(getcharid(3,.@name$))) getitem 7720,5,getcharid(3,.@name$);
	mes "Given reward to " + .@name$;
	announce .@name$ + " is the winner of the event and has won a reward!",bc_all;
	close;
	break;
	
	case 2:
	mes .@Gm$;
	mes "Nothing to do.";
	close;
	break;
}
}

Have fun please give me feed back.

 

What if the player talks again to the NPC, s/he will again get a reward?

Wouldn't be any abuse on it?

No normal player can't talk to this npc because it's set up on gm level :).

 

hi thanks for making the script but i want a reward that i can choose like event coins or tcg..

when GM type the name of the player it will automatically give the player the reward (item 7720 or 7227) and announce the GM Name and this player is the winner of the event and got 5 Event coins or TCG Card..

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.00
  • Content Count:  208
  • Reputation:   22
  • Joined:  01/14/13
  • Last Seen:  

 

 

 

can I please request for a reward giver script that works like this:

 

- GM will click the npc

- NPC will ask for the name of the player..

- when GM type the name of the player it will automatically give the player the reward (item 7720 or 7227) and announce the GM Name and this player is the winner of the event and got 5 Event coins or TCG Card..

- work  for gm level 1and up..

- if the GM typed the wrong name.. it will give gm a message to try again.. 

 

Hello :) Try this :) i already fixed and set gm lvl to 80 you can edit that to any gm lvl :D:) but don't make it 0 because 0 is equal normal player.

 

prontera,163,173,4	script	GM Helper	980,{	
if( getgmlevel() < 80 ) {
mes "You are not a GM with level 80 or higher, GTFO!";
close;
}
set .@Gm$,"[GM Helper]";

digit:
mes "Hello GM "+strcharinfo(0)+", what do you wish to do?";
next;
switch( select ("Set a winner","Exit")) {

	case 1:
	mes .@Gm$;
	mes "Enter char name";
	next;
	while(!.@id) {
		input .@name$;
		mes "[GM Helper]";
		set .@id,getcharid(3,.@name$);
		if(!.@id) {
			mes "Character not online. Please try again";
			next;
			continue;
		}
	}
	mes "["+.@name$+"] is correct?";
	if( select ("Yes:No") == 2) close;
	if( isloggedin(getcharid(3,.@name$))) getitem 7720,5,getcharid(3,.@name$);
	mes "Given reward to " + .@name$;
	announce .@name$ + " is the winner of the event and has won a reward!",bc_all;
	close;
	break;
	
	case 2:
	mes .@Gm$;
	mes "Nothing to do.";
	close;
	break;
}
}

Have fun please give me feed back.

 

What if the player talks again to the NPC, s/he will again get a reward?

Wouldn't be any abuse on it?

No normal player can't talk to this npc because it's set up on gm level :).

 

hi thanks for making the script but i want a reward that i can choose like event coins or tcg..

when GM type the name of the player it will automatically give the player the reward (item 7720 or 7227) and announce the GM Name and this player is the winner of the event and got 5 Event coins or TCG Card..

 

 

Your welcome :)

here already done . you can choose now and please just set up what ever you want to reward if you want to change :)

just change this script if you want to change reward

 

Reward < amount >

getitem 7227,5

Here's the code you request i hope you enjoy it /no1

prontera,163,173,4    script    GM Helper    980,{    
if( getgmlevel() < 80 ) {
mes "You are not a GM with level 80 or higher, GTFO!";
close;
}
set .@Gm$,"[GM Helper]";

digit:
mes "Hello GM "+strcharinfo(0)+", what do you wish to do?";
next;
switch( select ("Set a winner","Exit")) {

    case 1:
    mes .@Gm$;
    mes "Enter char name";
    next;
    while(!.@id) {
        input .@name$;
        mes "[GM Helper]";
        set .@id,getcharid(3,.@name$);
        if(!.@id) {
            mes "Character not online. Please try again";
            next;
            continue;
        }
    }
    mes "["+.@name$+"] is correct?";
    if( select ("Yes:No") == 2) close;
    next;
    mes "Select your prize you want to give, Tcg or Coins";
    //Selection if TCG Or Coins
    if( select ("Tcg:Coins") == 1 ) {
    //Selected Option 1
    if( isloggedin(getcharid(3,.@name$))) getitem 7227,5,getcharid(3,.@name$);
    mes "Given reward to " + .@name$;
    announce "GM " + strcharinfo(0) + " rewarded "+.@name$ + " for the winner of the event and has gotten 5 event TCG as a reward!",bc_all;
    }else{
    //Selected Option 2
    if( isloggedin(getcharid(3,.@name$))) getitem 7720,5,getcharid(3,.@name$);
    mes "Given reward to " + .@name$;
    announce "GM " + strcharinfo(0) + " rewarded " + .@name$ + " for the winner of the event and has gotten 5 event Coins as a reward!",bc_all;
    }
    close;
    break;
    
    case 2:
    mes .@Gm$;
    mes "Nothing to do.";
    close;
    break;
    

}
}

 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  61
  • Topics Per Day:  0.02
  • Content Count:  911
  • Reputation:   166
  • Joined:  11/27/14
  • Last Seen:  

Better try to use Emistry GM Reward with logs

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  62
  • Topics Per Day:  0.02
  • Content Count:  296
  • Reputation:   4
  • Joined:  02/19/17
  • Last Seen:  

On 6/7/2016 at 1:50 PM, hikashin-rae said:

 

Your welcome :)

here already done . you can choose now and please just set up what ever you want to reward if you want to change :)

just change this script if you want to change reward

 

Reward < amount >


getitem 7227,5

Here's the code you request i hope you enjoy it /no1


prontera,163,173,4    script    GM Helper    980,{    
if( getgmlevel() < 80 ) {
mes "You are not a GM with level 80 or higher, GTFO!";
close;
}
set .@Gm$,"[GM Helper]";

digit:
mes "Hello GM "+strcharinfo(0)+", what do you wish to do?";
next;
switch( select ("Set a winner","Exit")) {

    case 1:
    mes .@Gm$;
    mes "Enter char name";
    next;
    while(!.@id) {
        input .@name$;
        mes "[GM Helper]";
        set .@id,getcharid(3,.@name$);
        if(!.@id) {
            mes "Character not online. Please try again";
            next;
            continue;
        }
    }
    mes "["+.@name$+"] is correct?";
    if( select ("Yes:No") == 2) close;
    next;
    mes "Select your prize you want to give, Tcg or Coins";
    //Selection if TCG Or Coins
    if( select ("Tcg:Coins") == 1 ) {
    //Selected Option 1
    if( isloggedin(getcharid(3,.@name$))) getitem 7227,5,getcharid(3,.@name$);
    mes "Given reward to " + .@name$;
    announce "GM " + strcharinfo(0) + " rewarded "+.@name$ + " for the winner of the event and has gotten 5 event TCG as a reward!",bc_all;
    }else{
    //Selected Option 2
    if( isloggedin(getcharid(3,.@name$))) getitem 7720,5,getcharid(3,.@name$);
    mes "Given reward to " + .@name$;
    announce "GM " + strcharinfo(0) + " rewarded " + .@name$ + " for the winner of the event and has gotten 5 event Coins as a reward!",bc_all;
    }
    close;
    break;
    
    case 2:
    mes .@Gm$;
    mes "Nothing to do.";
    close;
    break;
    

}
}

 

On 6/7/2016 at 1:50 PM, hikashin-rae said:

 

Your welcome :)

here already done . you can choose now and please just set up what ever you want to reward if you want to change :)

just change this script if you want to change reward

 

Reward < amount >

getitem 7227,5

Here's the code you request i hope you enjoy it /no1

prontera,163,173,4    script    GM Helper    980,{    
if( getgmlevel() < 80 ) {
mes "You are not a GM with level 80 or higher, GTFO!";
close;
}
set .@Gm$,"[GM Helper]";

digit:
mes "Hello GM "+strcharinfo(0)+", what do you wish to do?";
next;
switch( select ("Set a winner","Exit")) {

    case 1:
    mes .@Gm$;
    mes "Enter char name";
    next;
    while(!.@id) {
        input .@name$;
        mes "[GM Helper]";
        set .@id,getcharid(3,.@name$);
        if(!.@id) {
            mes "Character not online. Please try again";
            next;
            continue;
        }
    }
    mes "["+.@name$+"] is correct?";
    if( select ("Yes:No") == 2) close;
    next;
    mes "Select your prize you want to give, Tcg or Coins";
    //Selection if TCG Or Coins
    if( select ("Tcg:Coins") == 1 ) {
    //Selected Option 1
    if( isloggedin(getcharid(3,.@name$))) getitem 7227,5,getcharid(3,.@name$);
    mes "Given reward to " + .@name$;
    announce "GM " + strcharinfo(0) + " rewarded "+.@name$ + " for the winner of the event and has gotten 5 event TCG as a reward!",bc_all;
    }else{
    //Selected Option 2
    if( isloggedin(getcharid(3,.@name$))) getitem 7720,5,getcharid(3,.@name$);
    mes "Given reward to " + .@name$;
    announce "GM " + strcharinfo(0) + " rewarded " + .@name$ + " for the winner of the event and has gotten 5 event Coins as a reward!",bc_all;
    }
    close;
    break;
    
    case 2:
    mes .@Gm$;
    mes "Nothing to do.";
    close;
    break;
    

}
}

 how to change this script? i want is Gm will type the reward id in game

if( isloggedin(getcharid(3,.@name$))) getitem 7720,5,getcharid(3,.@name$);
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...