Re: [RELEASE] Advanced Fame Seller
Dude, chill out. We never blame you for anything
Quote:
And it was never a contest, i just wanted people to have a good fame seller instead of that stealing one.
He wasn't refering to YOU. He meant that the original Coco will take mesos from you even if you select 'no'.
Re: [RELEASE] Advanced Fame Seller
lol i'm not even fired up! if you see me fire up all my words will be caps lock
Re: [RELEASE] Advanced Fame Seller
someone needs to know the meaning of "Advance".
also, the "+fame" is not "One More Fame"
fame = 1 in that script..
and the +fame = +1, it means POSITIVE 1 basically.
In others words.. "+" is not necessary. and all you need is (If you got this function) cm.gainFame(100);/cm.gainFame(fame+[AMOUNT-1]) (the last one is stupid, but ok..).
Re: [RELEASE] Advanced Fame Seller
does this stop the spammage?
Re: [RELEASE] Advanced Fame Seller
Things you need to add in case you think your script is so perfect :
Code:
winningplayer = cm.getChar().getName();
To
Code:
var winningplayer = cm.getChar().getName();
And addBoth of them can be added at the top of the script. Add a proper disposing method too. If the player chooses "End Chat" It would not close the chatbox.
Otherwise just do what XxOsirisxX said.
Re: [RELEASE] Advanced Fame Seller
i've already done wat u said, i'm uploading pictures now
Re: [RELEASE] Advanced Fame Seller
the var fame = 1 is already there, but, it dose'nt have ";"
Also mode == -1 is Exit Chat.
Re: [RELEASE] Advanced Fame Seller
Great job dude u accually made more advanced Fame seller XD
Re: [RELEASE] Advanced Fame Seller
Quote:
Originally Posted by
natkemon
Yes i know, i did it this way because it looked like i put alot of effort into it.
Killshadow05, Mine owns your fame seller
noone likes a bragger lol
Re: [RELEASE] Advanced Fame Seller
Quote:
the var fame = 1 is already there, but, it dose'nt have ";"
Also mode == -1 is Exit Chat.
thanxs i've done the first bit
i'm gonna leave the exit chat bit like it is cause its a way of going back instead of exiting it.
Re: [RELEASE] Advanced Fame Seller
Re: [RELEASE] Advanced Fame Seller
Re: [RELEASE] Advanced Fame Seller
This is the way i guess it should be :)
Code:
/*
This file is part of the MyStoryMS Maple Story Server
Copyright (C) 2008. Created by Nathan
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License version 3
as published by the Free Software Foundation. You may not use, modify
or distribute this program under any other version of the
GNU Affero General Public License.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see .#fUI/UIWindow.img/QuestIcon/6/0
*/
//Malady
var status = 0;
var fame = Array(1,3,5,10,20,50,100);
var price = Array(10000000,30000000,50000000,100000000,200000000,500000000,1000000000);
function start() {
status = -1;
action(1, 0, 0);
}
function action(mode, type, selection) {
if (mode == -1) {
cm.dispose();
} else {
if (mode == 0 && status == 1) {
cm.sendOk("Wherever you wants fame, come back to me");
cm.dispose();
return;
}
if (mode == 1)
status++;
else
status--;
if (status == 0) {
cm.sendSimple("Hello...\r\nI am the #fUI/UIWindow.img/QuestIcon/6/0# Seller .. If you would like to buy some Fame just choose one of the following deals :\r\n#b#L0#1 #fUI/UIWindow.img/QuestIcon/6/0# (10,000,000 mesos).#l\r\n#L1#3 #fUI/UIWindow.img/QuestIcon/6/0# (30,000,000 mesos).#l\r\n#L2#5 #fUI/UIWindow.img/QuestIcon/6/0# (50,000,000 mesos).#l\r\n#L3#10 #fUI/UIWindow.img/QuestIcon/6/0# (100,000,000 mesos).#l\r\n#L4#20 #fUI/UIWindow.img/QuestIcon/6/0# (200,000,000 mesos).#l\r\n#L5#50 #fUI/UIWindow.img/QuestIcon/6/0# (500,000,000 mesos).#l\r\n#L6#100 #fUI/UIWindow.img/QuestIcon/6/0# (1,000,000,000 mesos).#l\r\n\r\n#kEnjoy :)");
} else if (status == 1) {
cm.sendYesNo(fame[selection] + " #fUI/UIWindow.img/QuestIcon/6/0# #b " + price[selection] + " mesos#k.\r\nAre you sure you want to buy it?");
} else if (status == 2) {
if (cm.getMeso() >= price[selection]) {
cm.sendOk("Thanks you, Take here you fame \r\n\n#fUI/UIWindow.img/QuestIcon/6/0# \r\n " + fame[selection]);
cm.gainMeso(-price[selection]);
cm.gainFame(fame[selection]);
if (selection == 6){
cm.mapMessage(5, "[FAME] "+ cm.getChar().getName() +" Just bought 100 Fame for 1,000,000,000! WOW, so rich! ~");
}
cm.dispose();
}else{
cm.playerMessage(1,"You don't have enough mesos.");
cm.dispose();
}
}
}
Oo, i put dots instead of coma :x and forget the [selection] tag at price.. so much mistake it had :(
Re: [RELEASE] Advanced Fame Seller
what all is needed in the srouce files cuz this doesnt work at all. it doesnt add any fame at all just steals mesos.
Re: [RELEASE] Advanced Fame Seller
It does work. I tested it. So how can it not work for you?