Jump to content
  • 0

Requesting @partywarp


Question

Posted

Hey guys,
Was wondering if anyone had some scripts for an @partywarp such that whenever @warp is used, it brings a menu up to allow you to warp directly to a party member?
I didn't see one while using the search function, and google didn't spit out much help either.

 

Thanks!

6 answers to this question

Recommended Posts

  • 0
Posted (edited)

Not tested
 

-    script    partywarper    -1,{
OnInit:
    bindatcmd "pc",strnpcinfo(3)+"::pwarp";
    end;
pwarp:
// get the party member names
getpartymember getcharid(1),0;

set .@count, $@partymembercount;
copyarray .@name$[0], $@partymembername$[0], $@partymembercount;

mes "Select Number of the party member to warp to";
for (set .@i,0; .@i < .@count; set .@i, .@i+1) {
mes (.@i +1) + .@name$[.@i];
}
next;
input .@wtindex;
if(.@wtindex <= 0 || .@wtindex > .@count+1){
mes "Invalid Member Index";
close;
}
atcommand "@warpto "+ .@name$[.@wtindex - 1];
close;
    end;
}

EDIT:
Looks like i dont get what you want in the first day of reading, ( i mean i misunderstand )
use @pc to trigger the npc,
then select the partymember index you want to warp to,

Edited by Emistry
codebox
  • 0
Posted

Where would I add this script?  I added it as an npc, included the txt file in my config, and i added @pc and @pwarp to my group 0 commands, but nothing happens.  Am I doing something wrong?  Thank you in advance!

  • 0
Posted

[Error]: npc_parsesrcfile: Unknown syntax in file 'npc/custom/EventShop.txt', line '1'. Stopping...
 * w1=prontera,1,1,7711    shop    dynamicshop    -1,501:20000
 * w2=
 * w3=
 * w4=
[Error]: npc_parsesrcfile: Unknown syntax in file 'npc/custom/PartyWarp.txt', line '2'. Stopping...
 * w1=-    script    partywarper    -1,{
 * w2=
 * w3=
 * w4=
 

  • 0
Posted

@pc now works, but ->

 

[Error]: npc_event: event not found [partywarper::pwarp]

 

on the client, it does nothing / but it also does not display @pc as a chat input.

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...