snow
Junior Member
Posts: 16
Registered: 17-1-2010
Member Is Offline
|
|
Slap!
Hi there,
Thanks for keeping this project!
My question is.. there is any option to integrate Slap! button into the pnp?
|
|
kap
PnP Developer
Posts: 54
Registered: 6-8-2015
Member Is Offline
|
|
There's no slap! in the PnP popups. It's trivial to add the standard mIRC slap! into PnP files. Or you could script an add-on that does this!
|
|
kap
PnP Developer
Posts: 54
Registered: 6-8-2015
Member Is Offline
|
|
1. Save the following as slap.ppa in %appdata%\mIRC\addons
2. Load the slap addon using the PnP menu > Addons > More... interface
Code: |
; #= ppslap -rs
; ########################################
; Peace and Protection
; PnP Slap! (standard addon)
; ########################################
#.ppa.info off
[addon]
name=Slap!
group=Extras
popup=Slap!
author=acvxqs
version=1.00
url=
email=
id=ppslap
ppver=4.22
[files]
1=slap.ppa
[notes]
1=Adds the default trout slap to PnP.
[nicklist]
1=Slap!:me slaps $$1 around a bit with a large trout
#.ppa.info end
on *:LOAD:{
; PnP check
if (!$_ispnp) {
echo 4 -ati2 *** This addon requires Peace and Protection by pai to use.
echo 4 -ati2 *** You can download Peace and Protection at http://www.kristshell.net/pnp/
.timer -mio 1 0 .unload -rs " $+ $script $+ "
halt
}
; Invalid load method check
if (!$istok($_cfgx(addons,ids),$readini($script,n,addon,id),32)) {
.timer -mio 1 0 .unload -rs " $+ $script $+ "
dispa Unloading ' $+ $script $+ ' $chr(40) $+ addon is not properly loaded; use /addon to load it $+ $chr(41)
halt
}
}
|
|
|
snow
Junior Member
Posts: 16
Registered: 17-1-2010
Member Is Offline
|
|
Hi there,
Many thanks! Works great!!!
[Edited on 5-11-2019 at 01:13 by snow]
|
|
snow
Junior Member
Posts: 16
Registered: 17-1-2010
Member Is Offline
|
|
Hi there again!
One question: is there posible to move Slap! button from Misc. right under X options?
|
|
kap
PnP Developer
Posts: 54
Registered: 6-8-2015
Member Is Offline
|
|
Sure. You would have to take out the [nicklist] portion and define a menu nicklist.
Attention: be sure to unload SLAP.PPA first, make the changes in the SLAP.PPA file, then install the addon again!
Code: |
; #= ppslap -rs
; ########################################
; Peace and Protection
; PnP Slap! (standard addon)
; ########################################
#.ppa.info off
[addon]
name=Slap!
group=Extras
popup=Slap!
author=acvxqs
version=1.00
url=
email=
id=ppslap
ppver=4.22
[files]
1=slap.ppa
[notes]
1=Adds the default trout slap to PnP.
#.ppa.info end
on *:LOAD:{
; PnP check
if (!$_ispnp) {
echo 4 -ati2 *** This addon requires Peace and Protection by pai to use.
echo 4 -ati2 *** You can download Peace and Protection at http://www.kristshell.net/pnp/
.timer -mio 1 0 .unload -rs " $+ $script $+ "
halt
}
; Invalid load method check
if (!$istok($_cfgx(addons,ids),$readini($script,n,addon,id),32)) {
.timer -mio 1 0 .unload -rs " $+ $script $+ "
dispa Unloading ' $+ $script $+ ' $chr(40) $+ addon is not properly loaded; use /addon to load it $+ $chr(41)
halt
}
}
menu nicklist {
Slap!:me slaps $$1 around a bit with a large trout
}
|
Whether it is below X, I can't tell. If you've loaded X before SLAP it will, otherwise it will be above...
[Edited on 12-4-2020 at 08:38 by kap]
[Edited on 12-4-2020 at 09:35 by kap]
|
|