Jump to content

  •  

legion

Member Since 09 Jan 2014
Offline Last Active Jun 12 2014 07:29 AM
-----

Posts I've Made

In Topic: [Showcase] Premade v3

26 March 2014 - 08:21 AM

Hi, how much for that patcher and website? Can you do also the account management system on the website?


In Topic: Looking for a webdesigner, webcoder, webdeveloper.

16 March 2014 - 04:01 PM

Do you mean using the same useraccount/password to login to both Forum/CP? If so, that's more doable. 

Yeah, that's what I mean.


In Topic: Item Script Request

14 March 2014 - 12:29 AM

no it doesn't
Mumbles is right
when I read the source I saw SP_MOD_EXP and I thought it is like a *bonus type command

but it actually store the data in `account_data` table
which this table alter the value for the whole account

using my script, or the script in post#8, will have an exploit that
equip the item, logout, login another char in the same account
then that character will be having increased exp/drop rate without equipping the item
(you'll get the brown color announcement upon login ... very easy to spot this bug)

no, this ModDrop, ModExp and ModDeath is not meant for item bonuses,
its meant for VIP accounts

has to do like EvilPunker did

Oh yeah, it does give the other characters the exp bonus too when one character is wearing the item. Thanks AnnieRuru, gonna use 

 

sc_start SC_CASH_RECEIVEITEM[color=rgb(102,102,0);],-[/color][color=rgb(0,102,102);]1[/color][color=rgb(102,102,0);],[/color][color=rgb(0,102,102);]10[/color][color=rgb(102,102,0);];[/color]

sc_start SC_CASH_PLUSEXP[color=rgb(102,102,0);],-[/color][color=rgb(0,102,102);]1[/color][color=rgb(102,102,0);],[/color][color=rgb(0,102,102);]10[/color][color=rgb(102,102,0);];[/color]

 

[color=rgb(102,102,0);]and[/color]

 

sc_end SC_CASH_RECEIVEITEM[color=rgb(102,102,0);];[/color]

sc_end SC_CASH_PLUSEXP[color=rgb(102,102,0);];  then.[/color]


In Topic: Item Script Request

13 March 2014 - 09:01 AM

The only benefit I could see in using my version would be its immunity to this sc_end SC_ALL; as it is not a status condition and would not terminate unexpectedly if a player were to encounter such a script command.

 

Disclaimer: I've never actually bothered to use SC_CASH_* bonuses, so I'm not entirely sure if SC_ALL includes these as well; it may or may not be affected by sc_end SC_ALL;.

Actually what I did is to combine evilpuncker's and your script and ended up like this:

 

Script: <"
if(readparam(bStr)>=90) bonus bAllStats,1;
if(readparam(bStr)>=90) bonus bMaxHPrate,1;
if(readparam(bStr)>=90) bonus bMaxSPrate,1;
if(readparam(bStr)>=90) bonus bStr,(getrefine());
ModDrop = 110;
ModExp = 110;
">
OnUnequipScript: <"
ModDrop = 100;
ModExp = 100;
">

 

And works totally great! :)


In Topic: Item Script Request

13 March 2014 - 04:58 AM

Item script:

// Item scriptif (readparam(bStr) >= 90) {	bonus bAllStats, 1;	bonus bMaxHPrate, 1;	bonus bMaxSPrate, 1;	bonus bStr, getrefine();}ModDrop = 150;ModExp = 150;

 

Unequip script:

// Unequip scriptModDrop = 100;ModExp = 100;

 

Login / logout check (separate file):

-	script	check_items	-1,{	// Login check	OnPCLoginEvent:		if (isequipped(Knife)) {			ModDrop = 150;			ModExp = 150;		}				end;					// Logout reset	OnPCLogoutEvent:		ModDrop = 100;		ModExp = 100;		end;	}

 


 

I guess evilpuncker beat me to this haha, but I suppose either solution would work.

 

@evilpuncker: You can use getrefine() to return the value of the invoking equipment's refine level.

Either solution works, but as you say it, evilpuncker beat you to this, since his solution doesn't require to add additional script for login/logout, but your solution works as flawless as his, Thanks to both of you! :)