There's an upgrade of SQL on SVN 17351. trunk/sql-files/upgrades/upgrade_svn17351.sql
Execute this :
ALTER TABLE `inventory` ADD COLUMN `bound` TINYINT(3) UNSIGNED NOT NULL DEFAULT '0' AFTER `favorite`;
ALTER TABLE `cart_inventory` ADD COLUMN `bound` TINYINT(3) UNSIGNED NOT NULL default '0' AFTER `expire_time`;
ALTER TABLE `storage` ADD COLUMN `bound` TINYINT(3) UNSIGNED NOT NULL default '0' AFTER `expire_time`;
ALTER TABLE `guild_storage` ADD COLUMN `bound` TINYINT(3) UNSIGNED NOT NULL default '0' AFTER `expire_time`;
if (getskilllv(SM_SWORD) <= 5) nude;
*getskilllv(<skill id>)
*getskilllv("<skill name>")
This function returns the level of the specified skill that the invoking
character has. If they don't have the skill, 0 will be returned. The full list
of character skills is available in 'db/(pre-)re/skill_db.txt'.
There are two main uses for this function, it can check whether the character
has a skill or not, and it can tell you if the level is high enough.
Try
prontera,150,150,0 script Sample 100,{
set .@rand,rand(1,10);
switch(.@rand) {
case 1:
mes <1st message>;
break;
case 2:
mes <2nd message>;
break;
...
case 10:
mes <10th message>;
break;
default:
mes "Invalid choice";
break;
}
}
account_id is a primary key, meaning all account_id values must be different from one another. In your case, You are duplicating "1" in account_id column which means that there is already an existing "1" value. Hope you understand my english haha
Can make everything with encrypted data using MD5()
UPDATE `login` SET `user_pass` = MD5('"+<NEW PASSWORD>+"') WHERE `account_id` = '"+getcharid(3)+"'";
dunno if this will work on item. didn't try this using items lol.
{ query_sql "UPDATE `char` SET `name` = '"+escape_sql("<DESIRED NAME>")+"' WHERE `char_id` = '"+getcharid(0)+"'"; }
- Npc give quest kill - poring 30
OnNPCKillEvent:
if ( killedrid == 1002 ) killed = killed + 1;
end;
Add a check if a character already killed 30 porings. If so, give the prize :
if ( killed != 30 ) end;
killed = 0;
getitem <id>,<amount>;