summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2023-10-06 10:24:28 -0300
committerJesusaves <cpntb1@ymail.com>2023-10-06 10:24:28 -0300
commitd70ad08278f5235830e7c609b7e29096ce3f028a (patch)
tree913d784c04e0f77216f5808000111eda0525072b
parentc3f54fd644e56cda93f21b60d57a08b3a0ce4696 (diff)
downloadserverdata-d70ad08278f5235830e7c609b7e29096ce3f028a.tar.gz
serverdata-d70ad08278f5235830e7c609b7e29096ce3f028a.tar.bz2
serverdata-d70ad08278f5235830e7c609b7e29096ce3f028a.tar.xz
serverdata-d70ad08278f5235830e7c609b7e29096ce3f028a.zip
I forgot one extra menu option!
-rw-r--r--npc/015-3-3/blanc.txt18
1 files changed, 16 insertions, 2 deletions
diff --git a/npc/015-3-3/blanc.txt b/npc/015-3-3/blanc.txt
index f0bf05866..46de8bd1a 100644
--- a/npc/015-3-3/blanc.txt
+++ b/npc/015-3-3/blanc.txt
@@ -21,12 +21,17 @@
next;
.@id=requestitemindex();
- // Collect the item ID
+ // Collect the item ID and meta data
delinventorylist();
getinventorylist();
.@x=@inventorylist_id[.@id];
.@c1=@inventorylist_card1[.@id];
//.@r=@inventorylist_refine[.@id]; // TODO: Not restore-able without getitem2()
+ .@gid=getcharid(2);
+ if (.@gid)
+ .@admin=(getguildrole(.@gid, getcharid(3)) == GPOS_GUILDMASTER);
+ else
+ .@admin=false;
// No duplicates
if (countitem(.@x) > 1) {
@@ -50,6 +55,7 @@
select
l("Nothing. Sorry bothering."),
rif(checkbound(.@x, 1), l("I would like to sell it for %s GP.", fnum(.@price*2/3))),
+ rif(checkbound(.@x, 2) && .@admin, l("I would like to sell it for %s GP.", fnum(.@price*1/3))),
rif(.@c1 >= 252, l("I would like to swap, I offer you %s GP.", fnum(.@price))),
rif(!checkbound(.@x), l("I would like to sell it for %s GP.", fnum(.@price*11/10)));
switch (@menu) {
@@ -61,6 +67,14 @@
mesq l("Pleasure doing business with you.");
break;
case 3:
+ // Sell guild bound items
+ if (!.@admin) { atcommand("@ban 2d "+strcharinfo(0)); end; } // Anti-Cheat
+ delitem .@x, 1;
+ Zeny += .@price * 1 / 3;
+ mesn;
+ mesq l("Pleasure doing business with you.");
+ break;
+ case 4:
// Remove item name
if (Zeny < .@price) {
mesn;
@@ -89,7 +103,7 @@
mesn;
mesq l("Eh, sure, you can have this %s. It is not refined but should do the trick. Maybe. NO REFUNDS!", getitemlink(.@x));
break;
- case 4:
+ case 5:
// Regular item sale
delitem .@x, 1;
Zeny += .@price * 11 / 10;