Jump to content
  • 0

Requesting @partywarp


bob9497

Question


  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  17
  • Reputation:   1
  • Joined:  02/01/16
  • Last Seen:  

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!

Link to comment
Share on other sites

6 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  26
  • Topics Per Day:  0.01
  • Content Count:  350
  • Reputation:   43
  • Joined:  09/07/12
  • Last Seen:  

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
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  17
  • Reputation:   1
  • Joined:  02/01/16
  • Last Seen:  

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!

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  26
  • Topics Per Day:  0.01
  • Content Count:  350
  • Reputation:   43
  • Joined:  09/07/12
  • Last Seen:  

add it as new npc

you dont need to add the @pc in groups.conf,
check if you have error(s) in console.
 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  17
  • Reputation:   1
  • Joined:  02/01/16
  • Last Seen:  

[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=
 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  26
  • Topics Per Day:  0.01
  • Content Count:  350
  • Reputation:   43
  • Joined:  09/07/12
  • Last Seen:  

make sure to change the spaces to tabs on the first line

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  17
  • Reputation:   1
  • Joined:  02/01/16
  • Last Seen:  

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

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