Jump to content
  • 0

NPC scripts


Spectator

Question


  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.00
  • Content Count:  63
  • Reputation:   0
  • Joined:  01/09/13
  • Last Seen:  

Hi to all can i request some of the scripts?

 

1. Pods to Cash Point (ex. 1 pods = 2000 cash point)

    Pods to Tcg (ex. 1 pods = 10 tcg)

 

 

2. Pods Reward Giver

 

    ex. Gm will input the name of the player and the amount of pods even if the player is online or offline

    then the player will get the item to npc.

 

 

 

 

 

thanks in advance /thx

 

Link to comment
Share on other sites

2 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  50
  • Topics Per Day:  0.01
  • Content Count:  1702
  • Reputation:   241
  • Joined:  09/05/12
  • Last Seen:  

Pods -> Cashpoints = 

prontera,150,150,0    script    Test    100,{
OnInit:
    // NPC Name
    .NPC$ = strnpcinfo(1);
    // Cashpoints amount to be received
    .Amount = 5;
    // Tickt for transaction (PODS TCG etc)
    .Ticket = 7227;
    end;

mes .NPC$;
mes "Hello " +strcharinfo(0)+ ". What can i do for you?";
next;
if (select("Exchange my " +getitemname(.Ticket)+ " to cashpoints:Nothing" - 1) close;
mes .NPC$:
mes "How many " +getitemname(.Ticket)+ " would you like to exchange? 1 " +getitemname(.Ticket)+ " = " +.Amount+ " cash points";
next;
input @amount;
if (@amount == 0 ){
    mes .NPC$;
    mes "Invalid amount";
    close;
}
mes .NPC$;
mes "So you want to exchange " +@amount+ " " +getitemname(.Ticket)+ "?";
next;
if (select("Yes:No") - 1)close;
mes .NPC$;
mes "Let me check if you have the following requirements.";
next;
if (countitem(.Ticket) < @amount) {
    mes .NPC$;
    mes "Hello " +strcharinfo(0)+ " you do not have enough " +getitemname(.Ticket);
    close;
}
mes .NPC$;
mes "Orayt here you go!";
delitem .Ticket,@amount;
set #CASHPOINTS, #CASHPOINTS + (@amount * .Amount);
dispbottom "Currently you have " +#CASHPOINTS+ " cash points. Thank you for the transaction";
end;
}
  • Upvote 1
Link to comment
Share on other sites

  • 1

  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.00
  • Content Count:  63
  • Reputation:   0
  • Joined:  01/09/13
  • Last Seen:  

Pods -> Cashpoints = 

 

prontera,150,150,0    script    Test    100,{
OnInit:
    // NPC Name
    .NPC$ = strnpcinfo(1);
    // Cashpoints amount to be received
    .Amount = 5;
    // Tickt for transaction (PODS TCG etc)
    .Ticket = 7227;
    end;

mes .NPC$;
mes "Hello " +strcharinfo(0)+ ". What can i do for you?";
next;
if (select("Exchange my " +getitemname(.Ticket)+ " to cashpoints:Nothing" - 1) close;
mes .NPC$:
mes "How many " +getitemname(.Ticket)+ " would you like to exchange? 1 " +getitemname(.Ticket)+ " = " +.Amount+ " cash points";
next;
input @amount;
if (@amount == 0 ){
    mes .NPC$;
    mes "Invalid amount";
    close;
}
mes .NPC$;
mes "So you want to exchange " +@amount+ " " +getitemname(.Ticket)+ "?";
next;
if (select("Yes:No") - 1)close;
mes .NPC$;
mes "Let me check if you have the following requirements.";
next;
if (countitem(.Ticket) < @amount) {
    mes .NPC$;
    mes "Hello " +strcharinfo(0)+ " you do not have enough " +getitemname(.Ticket);
    close;
}
mes .NPC$;
mes "Orayt here you go!";
delitem .Ticket,@amount;
set #CASHPOINTS, #CASHPOINTS + (@amount * .Amount);
dispbottom "Currently you have " +#CASHPOINTS+ " cash points. Thank you for the transaction";
end;
}

thanks for the script sir /no1 .

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