worked on it some more. now need to study up on doing dropdown boxs for it. everything works now but need to make some changes for multi option for some commands
never did figure out what that else statment on bottom was for so deleated it

my first attempt at doing dialogs so any help or info is appreciated

questions
how do you fill in items for a dropdown?
is there away to pull a nick from nicklist to the script/dialog ?
ie click on a nick to highlight it and have that nick be used to fill in an argument in a statement?
im useing the $? box to fill in nicks ATM but would like to not have to type. I know i could use menu nicklist but was loking to do it all from a dialog

Originally Posted By: QuietSilence

[Addon]
Script=Pirates-GamePad
Version=1.0
Author=DR DevTeam
Desc=!Pirates Game Pad
For=DragonRyder v13.5
Date=May 29th 2019
;NOTE: mod done with permission
;[Mon. Apr. 23 2007 2:41pm] <Ryu> you mind if i mod it to make it so it will do cd
;[Mon. Apr. 23 2007 2:41pm] <lurk3r> np, do what yer like lol

menu channel {
!Pirates GamePad: {
set %pirates.chan $iif(%pirates.chan != $chan,$iif($$input(Change !Pirates channel to $chan $+ ?,y,Pirates Channel is %pirates.chan),$chan,%pirates.chan),$chan)
if (%pirates.chan == $chan) { dialog $iif(!$dialog(DRDT-PiratesAddon),-mdo,-ev) DRDT-PiratesAddon DRDT-PiratesAddon }
}
}

dialog DRDT-PiratesAddon {
title "!Pirates Game Pad v1.0"
size 100 100 276 140
option dbu
button "bored", 18, 107 52 32 10
button "awake", 103, 107 94 32 10
button "bot", 40, 208 22 32 10
button "brig", 219, 140 42 32 10
button "weapon", 220, 175 12 32 10
button "dig", 19, 72 22 32 10
button "fish", 25, 72 12 32 10
button "crabbin", 26, 72 52 32 10
button "work", 27, 72 42 32 10
button "steal", 221, 243 12 32 10
button "love", 28, 2 106 32 10
button "hate", 29, 2 116 32 10
button "legends", 30, 140 32 32 10
button "Lottery", 43, 140 104 32 10
button "scour", 31, 37 96 32 10
button "maps", 32, 107 42 32 10
button "mutiny", 315, 2 126 32 10
button "Party", 316, 140 94 32 10
button "rusty", 402, 140 52 32 10
button "search", 41, 37 106 32 10
button "daily", 13, 107 22 32 10
button "goals", 14, 107 32 32 10
button "heal", 314, 175 52 32 10
button "lockpick", 211, 243 22 32 10
button "snatch", 16, 243 32 32 10
button "dive", 17, 72 32 32 10
button "top", 401, 107 12 32 10
button "tavern", 312, 175 42 32 10
button "mercy", 313, 107 104 32 10
button "stamina", 212, 175 22 32 10
button "ship", 42, 210 96 32 10
button "troll", 213, 72 116 32 10
button "tasks", 1, 140 12 32 10
button "carry", 2, 2 42 32 10
button "about", 11, 140 62 32 10
button "achievement", 12, 107 72 65 10
button "captain", 21, 243 126 32 10
button "capn favor", 22, 243 116 32 10
button "capn rep", 23, 243 106 32 10
button "capn stats", 24, 243 96 32 10
button "rig", 8, 2 32 32 10
button "steer", 9, 37 32 32 10
button "repair", 7, 37 22 32 10
button "fix", 5, 37 42 32 10
button "lookout", 6, 2 22 32 10
button "cook", 4, 37 12 32 10
button "Age", 10, 107 62 32 10
button "clean", 3, 2 12 32 10
button "swab", 15, 2 52 32 10
button "Info", 214, 140 22 32 10
button "Power", 215, 175 32 32 10
button "Level", 216, 208 12 32 10
button "Request", 39, 2 96 32 10
button "Insult", 217, 72 106 32 10
button "Davy Jones", 218, 72 96 32 10
text "Players", 500, 72 84 32 10, center
text "miscellaneous", 501, 107 84 65 10, center
text "Lvl 1-5", 502, 2 2 32 10, center
text "Lvl 5-6", 503, 37 2 32 10, center
text "Lvl 10+", 504, 72 2 32 10, center
text "Info", 505, 107 2 65 10, center
text "Fight", 506, 175 2 65 10, center
text "Theff", 507, 243 2 32 10, center
text "Lvl 1-5", 508, 2 84 32 10, center
text "Captain Commands", 509, 210 84 65 10, center
text "Find", 510, 37 84 32 10, center
}
on *:dialog:DRDT-PiratesAddon:init:*:{
var %pirates.play
dialog -t $dname $dialog($dname).title Now playing in %pirates.chan
}
on *:dialog:DRDT-PiratesAddon:sclick:1-43,211-221,311-316,401-402,411-413: {

if ($did isnum 211-221) {
%pirates.play = p lockpick|p stamina|p troll|p Info|p Power|p Level|p Insult|p Davy Jones|p brig|p weapon|p rob
%pirates.name = $?="enter pirate name $crlf or blank for your self:"
%pirates.did = $did - 210
%pirates.play = $gettok(%pirates.play,%pirates.did,124)
%pirates.play = %pirates.play %pirates.name
}
elseif ($did isnum 401-402) {
%pirates.play = p top|p rusty
%pirates.var = $?="blank for top 5 $crlf 2 for top 6-10 $crlf 3 for top 11-15 ect.:"
%pirates.did = $did - 400
%pirates.play = $gettok(%pirates.play,%pirates.did,124)
%pirates.play = %pirates.play %pirates.var

}
elseif ($did isnum 312-316) {
%pirates.play = p tavern rum|p mercy aye|p heal aye|p mutiny aye|p party aye
%pirates.did = $did - 311
%pirates.play = $gettok(%pirates.play,%pirates.did,124)
}
elseif ($did isnum 1-43) {
%pirates.len = $len($did($did))
%pirates.play = p $left($did($did),%pirates.len)
}
msg %pirates.chan %pirates.play
}