Jump to content
  • 0

Freebies NPC then Teleport them to Savepoint


cross10hunter

Question


  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.01
  • Content Count:  49
  • Reputation:   0
  • Joined:  10/13/17
  • Last Seen:  

Hi, this is a freebies NPC script. I would like include a teleport script going to prontera after they click the NPC. Example, they click the NPC after they claim the freebies they will be warped immediately to prontera.

and another question its seem like there is a bug when you put a  rental card on a non rental ITEM the rental card will become non rental card after the expiration or just after they card removed it. Thank You! 

 

turbo_room,118,101,4    script    Freebies    790,{
OnInit:
    waitingroom "Click Me Freebies",0;

    if(#sorry == 1) goto L_1;
    mes "You will receive Some Present as a reward for joining the server";
    mes "We're gladly thankful for your support in the future too.";
    next;
    if(checkweight(2504,1) == 0 ) goto L_OverWeight;
    rentitem 2357,259200; //armorvalk
    rentitem 5171,259200; //valkhelm
    rentitem 2421,259200; //shoes valk
    rentitem 2524,259200; //valkmantue
    rentitem 2115,259200; //shield valk
    rentitem 5170,259200; //FB
    rentitem 18507,259200; //Elvenslotted
    rentitem 2701,259200;    //OG
    rentitem 5374,259200;    //GMG
    rentitem 5597,259200;    //Chew
    rentitem 2630,259200; //briss
//    rentitem 4263,259200; //inca
//    rentitem 4302,259200; //tao-gunka
//    rentitem 4143,259200; //orc hero
//    rentitem 4198,259200; //maya-p
//    rentitem 4146,259200; //maya
//    rentitem 4236,259200; //amon
//    rentitem 4374,259200; //vesper
//    getitem2 14533,10,1,0,0,0,0,0,0;    // (Custom Items
//    getitem 2524,1; //valkmant
//    getitem 5171,1; //valkhem
//    getitem 2421,1; //shoes valk card
//    getitem 2357,1; //armor valk card
//    getitem 2115,1; //shield valk card
//    getitem 4147,1; //bapo
//    getitem2 12210,4,1,0,0,0,0,0,0;    // (Custom Items
//    getitem2 12214,2,1,0,0,0,0,0,0;    // (Custom Items
    emotion e_thx;
    set #sorry,1;
    close;


L_OverWeight:
    mes "Sorry, you are over weight";
    emotion e_omg;
    close;

L_1:
    mes "You had already received before the gift.";
    emotion e_bzz;
    close;
}

 

Edited by Emistry
Please use codebox
Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  38
  • Topics Per Day:  0.01
  • Content Count:  333
  • Reputation:   67
  • Joined:  09/05/12
  • Last Seen:  

35 minutes ago, cross10hunter said:

Hi, this is a freebies NPC script. I would like include a teleport script going to prontera after they click the NPC. Example, they click the NPC after they claim the freebies they will be warped immediately to prontera.

and another question its seem like there is a bug when you put a  rental card on a non rental ITEM the rental card will become non rental card after the expiration or just after they card removed it. Thank You! 

 

turbo_room,118,101,4    script    Freebies    790,{
OnInit:
    waitingroom "Click Me Freebies",0;

    if(#sorry == 1) goto L_1;
    mes "You will receive Some Present as a reward for joining the server";
    mes "We're gladly thankful for your support in the future too.";
    next;
    if(checkweight(2504,1) == 0 ) goto L_OverWeight;
    rentitem 2357,259200; //armorvalk
    rentitem 5171,259200; //valkhelm
    rentitem 2421,259200; //shoes valk
    rentitem 2524,259200; //valkmantue
    rentitem 2115,259200; //shield valk
    rentitem 5170,259200; //FB
    rentitem 18507,259200; //Elvenslotted
    rentitem 2701,259200;    //OG
    rentitem 5374,259200;    //GMG
    rentitem 5597,259200;    //Chew
    rentitem 2630,259200; //briss
//    rentitem 4263,259200; //inca
//    rentitem 4302,259200; //tao-gunka
//    rentitem 4143,259200; //orc hero
//    rentitem 4198,259200; //maya-p
//    rentitem 4146,259200; //maya
//    rentitem 4236,259200; //amon
//    rentitem 4374,259200; //vesper
//    getitem2 14533,10,1,0,0,0,0,0,0;    // (Custom Items
//    getitem 2524,1; //valkmant
//    getitem 5171,1; //valkhem
//    getitem 2421,1; //shoes valk card
//    getitem 2357,1; //armor valk card
//    getitem 2115,1; //shield valk card
//    getitem 4147,1; //bapo
//    getitem2 12210,4,1,0,0,0,0,0,0;    // (Custom Items
//    getitem2 12214,2,1,0,0,0,0,0,0;    // (Custom Items
    emotion e_thx;
    set #sorry,1;
    savepoint "prontera",156,191;
    warp "prontera",156,191;
    close;


L_OverWeight:
    mes "Sorry, you are over weight";
    emotion e_omg;
    close;

L_1:
    mes "You had already received before the gift.";
    emotion e_bzz;
    close;
}

Try this.

  • Upvote 1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.01
  • Content Count:  49
  • Reputation:   0
  • Joined:  10/13/17
  • Last Seen:  

Ok i Will thanks for the fast reply!

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.01
  • Content Count:  49
  • Reputation:   0
  • Joined:  10/13/17
  • Last Seen:  

3 hours ago, GodKnows Jhomz said:

turbo_room,118,101,4    script    Freebies    790,{
OnInit:
    waitingroom "Click Me Freebies",0;

    if(#sorry == 1) goto L_1;
    mes "You will receive Some Present as a reward for joining the server";
    mes "We're gladly thankful for your support in the future too.";
    next;
    if(checkweight(2504,1) == 0 ) goto L_OverWeight;
    rentitem 2357,259200; //armorvalk
    rentitem 5171,259200; //valkhelm
    rentitem 2421,259200; //shoes valk
    rentitem 2524,259200; //valkmantue
    rentitem 2115,259200; //shield valk
    rentitem 5170,259200; //FB
    rentitem 18507,259200; //Elvenslotted
    rentitem 2701,259200;    //OG
    rentitem 5374,259200;    //GMG
    rentitem 5597,259200;    //Chew
    rentitem 2630,259200; //briss
//    rentitem 4263,259200; //inca
//    rentitem 4302,259200; //tao-gunka
//    rentitem 4143,259200; //orc hero
//    rentitem 4198,259200; //maya-p
//    rentitem 4146,259200; //maya
//    rentitem 4236,259200; //amon
//    rentitem 4374,259200; //vesper
//    getitem2 14533,10,1,0,0,0,0,0,0;    // (Custom Items
//    getitem 2524,1; //valkmant
//    getitem 5171,1; //valkhem
//    getitem 2421,1; //shoes valk card
//    getitem 2357,1; //armor valk card
//    getitem 2115,1; //shield valk card
//    getitem 4147,1; //bapo
//    getitem2 12210,4,1,0,0,0,0,0,0;    // (Custom Items
//    getitem2 12214,2,1,0,0,0,0,0,0;    // (Custom Items
    emotion e_thx;
    set #sorry,1;
    savepoint "prontera",156,191;
    warp "prontera",156,191;
    close;


L_OverWeight:
    mes "Sorry, you are over weight";
    emotion e_omg;
    close;

L_1:
    mes "You had already received before the gift.";
    emotion e_bzz;
    close;
}

Try this.

Not working. the NPC just vanished.

 

56 minutes ago, cross10hunter said:

Not working. the NPC just vanished.

Nvm, its working!. Thanks! Pls close thread. 

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