Jump to content

noobsai

Members
  • Posts

    70
  • Joined

  • Last visited

Profile Information

  • Gender
    Male
  • Location
    Cebu

Recent Profile Visitors

2431 profile views

noobsai's Achievements

Poring

Poring (1/15)

  • Week One Done
  • One Month Later
  • One Year In

Recent Badges

0

Reputation

1

Community Answers

  1. I already did that on my Iteminfo.lua and lub file but still not going to costume tab.
  2. Hi Guys, I have problem regarding my costumes not going to the correct storage section which is "Costumes" My Client is 20180620 using https://github.com/zackdreaver/ROenglishPRE/ data and system folder. Please help me fix this issue and make my costumes go into the "Cstm"/costume section of the storage. Thank you
  3. Hello, Is it possible to enable fluxcp raLogs menu > Commands to be on normal players account ? If yes, how do I do it?
  4. [spoiler=Script here]//===== eAthena Script ======================================= //= Item Rewards NPC //===== By: ================================================== //= Euphy //===== Current Version: ===================================== //= 1.8 //===== Description: ========================================= //= Useful for event rewards, when a player is not necessarily online. //= Logging is available, if needed (holds 128 names). //= Note: Unclaimed rewards are limited to 64 at a time. //============================================================ prontera,156,195,6 script Item Rewards 836,{ // --------------------- Config --------------------- // Package format is "ID1,Count1,ID2,Count2,..." // GM Access: Level required to open the GM menu. // GM Delete: Level required to erase entries. // GM Logging: Level required to manage logs. set .GMAccess,60; set .GMDelete,80; set .GMLogging,99; set .PackageCount,3; setarray .Package1[0],501,1,502,2,503,3; setarray .Package2[0],601,5,602,10; setarray .Package3[0],607,10; // -------------------------------------------------- if (getgmlevel() >= .GMAccess) goto GM_Menu; mes "[item Rewards]"; set .@i,0; while (.@i < getarraysize($itemreward$)) { if (strcharinfo(0) == $itemreward$[.@i]) goto GetReward; set .@i, .@i+2; } mes "You have no rewards pending."; close; GetReward: if (((Weight*100)/MaxWeight) > 49) { mes "You are over the weight limit."; close; } if (!checkweight(5055,getarraysize(getd(".Package"+$itemreward$[.@i+1])))) { mes "Clear space in your inventory."; close; } set .@j,0; while (.@j < getarraysize(getd(".Package"+$itemreward$[.@i+1]))) { getitem getd(".Package"+$itemreward$[.@i+1]+"["+.@j+"]"),getd(".Package"+$itemreward$[.@i+1]+"["+(.@j+1)+"]"); set .@j, .@j+2; } specialeffect2 248; deletearray $itemreward$[.@i],2; mes "Here you go!"; close; OnMinute00: OnMinute30: if (!getarraysize($itemreward$)) end; set .@i,0; while (.@i < getarraysize($itemreward$)) { message $itemreward$[.@i],"[You have a reward pending. See the Item Rewards NPC.]"; sleep 10; set .@i, .@i+2; } end; GM_Menu: mes "[item Rewards]"; mes "What would you like to do?"; next; switch(select(" ~ ^FF55FFPackage information^000000: ~ ^FF55FFList unclaimed rewards^000000: ~ ^00D900Give a reward^000000: ~ "+((getgmlevel()<.GMDelete)?"^777777":"^DE0000")+"Delete a reward^000000: ~ "+((getgmlevel()<.GMDelete)?"^777777":"^DE0000")+"Delete all unclaimed rewards^000000: ~ "+((getgmlevel()<.GMLogging)?"^777777":"^55AAFF")+"Manage logs^000000: ~ [Close]")) { case 1: mes "[item Rewards]"; set .@j,1; while (getd(".Package"+.@j)) { mes "^660099Package " + .@j + ":^000000"; set .@i,0; while (.@i < getarraysize(getd(".Package"+.@j))) { mes " ~ " + getd(".Package"+.@j+"["+(.@i+1)+"]") + "x " + getitemname(getd(".Package"+.@j+"["+(.@i)+"]")); set .@i, .@i+2; } set .@j, .@j+1; } next; goto GM_Menu; case 2: mes "[item Rewards]"; mes "Used space: ^F52887" + (getarraysize($itemreward$)/2) + "^000000/64"; mes "--------------------------------"; set .@i,0; while (.@i < getarraysize($itemreward$)) { mes "^B041FF" + $itemreward$[.@i] + "^000000: package #" + $itemreward$[.@i+1]; set .@i, .@i+2; } next; goto GM_Menu; case 3: mes "[item Rewards]"; if (getarraysize($itemreward$) > 127) { mes "No more names can be stored."; mes "Delete some values and try again."; next; goto GM_Menu; } mes "Input a name, then a package number."; input .@name$; query_sql "SELECT `char_id` FROM `char` WHERE `name` = '"+.@name$+"'",.@charid; if (!.@charid) { mes "The name is invalid."; next; goto GM_Menu; } else set .@charid,0; input .@package,1,.PackageCount; next; mes "[item Rewards]"; mes "Player: ^B041FF" + .@name$ + "^000000"; mes "Package: ^B041FF#" + .@package + "^000000"; mes " "; mes "Are you sure?"; if (select("Yes:No") == 2) { mes "Request cancelled."; next; goto GM_Menu; } setarray $itemreward$[getarraysize($itemreward$)],.@name$,.@package; message .@name$,"[You have a reward pending. See the Item Rewards NPC.]"; if ($itemlog) { if (getarraysize($itemlog1$) > 127) { deletearray $itemlog1$[0],1; deletearray $itemlog2$[0],1; } setarray $itemlog1$[getarraysize($itemlog1$)],strcharinfo(0); setarray $itemlog2$[getarraysize($itemlog2$)],.@name$; } mes "Reward added."; next; goto GM_Menu; case 4: mes "[item Rewards]"; if (getgmlevel() < .GMDelete) { mes "You are not permitted to delete entries."; next; goto GM_Menu; } mes "Input a name to cancel a reward."; input .@name$; set .@i,0; while (.@i < getarraysize($itemreward$)) { if ($itemreward$[.@i] == .@name$) { deletearray $itemreward$[.@i],2; mes "Name cleared."; next; goto GM_Menu; } set .@i, .@i+2; } mes "The name is invalid."; next; goto GM_Menu; case 5: mes "[item Rewards]"; if (getgmlevel() < .GMDelete) { mes "You are not permitted to delete entries."; next; goto GM_Menu; } mes "^FF0000This action cannot be undone.^000000"; mes "Are you sure?"; mes " "; if (select("Yes:No") == 2) { mes "Request cancelled."; next; goto GM_Menu; } deletearray $itemreward$[0],getarraysize($itemreward$); mes "All entries cleared."; next; goto GM_Menu; case 6: Log_Menu: mes "[item Rewards]"; if (getgmlevel() < .GMLogging) { mes "You are not permitted to manage logs."; next; goto GM_Menu; } mes "Logs are currently "+(($itemlog)?"^00D900enabled^000000":"^FF0000disabled^000000")+"."; next; switch(select(" ~ ^55AAFFView Logs^000000: ~ "+((!$itemlog)?"^00D900Enable":"^777777Disable")+" logging^000000: ~ ^DE0000Delete all logs^000000: ~ [Go back]")) { case 1: mes "[item Rewards]"; mes "Used space: ^F52887" + (getarraysize($itemlog1$)) + "^000000/128"; mes "--------------------------------"; set .@i,0; while (.@i < getarraysize($itemlog1$)) { mes "^B041FF" + $itemlog1$[.@i] + "^000000: sent to ^55AAFF" + $itemlog2$[.@i] + "^000000"; set .@i, .@i+1; } next; goto Log_Menu; case 2: set $itemlog, ((!$itemlog)?1:0); goto Log_Menu; case 3: mes "[item Rewards]"; mes "^FF0000This action cannot be undone.^000000"; mes "Are you sure?"; mes " "; if (select("Yes:No") == 2) { mes "Request cancelled."; next; goto Log_Menu; } deletearray $itemlog1$[0],getarraysize($itemlog1$); deletearray $itemlog2$[0],getarraysize($itemlog2$); mes "Logs cleared."; next; goto Log_Menu; case 4: next; goto GM_Menu; } case 7: close; } } Hello guys, Is it possible to call euphys' reward npc script via @command? ex. @reward > then the menu will pop up? by the way this is the script.
  5. Hi anyone knows how to fix this? my server is hosted on vps and it's already running same with my webhost though they have different IP to prevent lag. but when I install fluxCP it gives me this error. Thanks
  6. thanks for the tips. but I have seen a NPC that generates the random text but with different color. for example: "asdfqwertzxcv" the strings "asdf" have color blue then "qwert" is red and "zxcv" is blue again then the npc will say to input only the red text. is it still not safe?
  7. Hi can you help me with my gold room warper. I want to have an NPC which asks for a random character to prevent bot. after successfully entering the random text he will now warp the player ex. @warp jupe_ele Thanks.
  8. Hi I have this script which I found in script release section /*========================================================= @reward command by Missingno =========================================================== Request: http://goo.gl/NCHzvi =========================================================== Description: Allows for preset or user-defined rewards via atcommand. Announce and logging options are also available. =========================================================== SQL table: CREATE TABLE IF NOT EXISTS `rewardlog` ( `id` int(11) unsigned NOT NULL auto_increment, `account_id` int(11) NOT NULL, `staff_name` varchar(255) NOT NULL, `item_amount` int(11) NOT NULL, `item_id` int(11) NOT NULL, `item_name` varchar(255) NOT NULL, `char_id` int(11) NOT NULL, `player_name` varchar(255) NOT NULL, `when` datetime NOT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM; =========================================================== Compatibility: Optimised for rAthena emulators. =========================================================== Changelog: v1.0 - First version. v1.1 - Some housekeeping. v1.1.1 - Replaced ++.@j with (.@i / 2 + 1). =========================================================*/ - script reward -1,{ OnInit: // Configuration bindatcmd "reward", strnpcinfo(3) +"::OnAtcommand", 40, 40; // Enable preset items? 1 = yes, 0 = no .preset = 1; // Announce reward? 1 = yes, 0 = no .announce = 1; // Log reward? 1 = yes, 0 = no .log = 1; // Define preset item IDs and amounts setarray .preset_id[0], 7227, 2, // 1: TCG 14232, 20, // 2: Ygg Box 20001, 10; //3: Coins end; OnAtcommand: // Reward with preset items (syntax: @reward <preset> <player name>) if (.preset) { // Check if preset is defined if (!atoi(.@atcmd_parameters$[0]) || (atoi(.@atcmd_parameters$[0]) - 1) * 2 > .@atcmd_numparameters) { message strcharinfo(0), "Invalid preset defined."; // List presets for (.@i = 0; .@i < getarraysize(.preset_id); .@i += 2) { message strcharinfo(0), (.@i / 2 + 1) +": "+ .preset_id[.@i + 1] +" "+ getitemname(.preset_id[.@i]); } message strcharinfo(0), .@atcmd_command$ +" failed."; end; } // Select preset item ID and amount .@item_id = .preset_id[(atoi(.@atcmd_parameters$[0]) - 1) * 2]; .@amount = .preset_id[(atoi(.@atcmd_parameters$[0]) - 1) * 2 + 1]; // Reward with user-defined items (syntax: @reward <item id> <amount> <player name> } else { // Define item ID and amount .@item_id = atoi(.@atcmd_parameters$[0]); .@amount = atoi(.@atcmd_parameters$[1]); } // Check for proper input if (.@atcmd_numparameters < (.preset ? 2 : 3)) { message strcharinfo(0), "Invalid syntax (usage: "+ .@atcmd_command$ +" "+ (.preset ? "<preset>" : "<item id> <amount>") +" <player name>)."; message strcharinfo(0), .@atcmd_command$ +" failed."; end; } // Determine target player name for (.@i = (.preset ? 1 : 2); .@i < .@atcmd_numparameters; .@i++) { .@player_name_tmp$[.@j++] = .@atcmd_parameters$[.@i]; } // Define target player name .@player_name$ = implode(.@player_name_tmp$, " "); // Check if target player is online if (!getcharid(3, .@player_name$)) { message strcharinfo(0), "The player '"+ .@player_name$ +"' is not online or does not exist."; message strcharinfo(0), .@atcmd_command$ +" failed."; // Reward target player } else { getitem .@item_id, .@amount, getcharid(3, .@player_name$); // Announce reward if (.announce) { announce strcharinfo(0) +" has rewarded '"+ .@player_name$ +"' with "+ .@amount +" "+ getitemname(.@item_id) +".", bc_all; } // Log reward if (.log) { query_logsql "INSERT INTO `rewardlog` VALUES (NULL, '"+ getcharid(3) +"', '"+ escape_sql(strcharinfo(0)) +"', '"+ .@amount +"', '"+ .@item_id +"', "+ "'"+ escape_sql(getitemname(.@item_id)) +"', '"+ getcharid(0, .@player_name$) +"', '"+ escape_sql(.@player_name$) +"', NOW())"; message strcharinfo(0), "Reward has been logged."; } } end; } I want to add a message for the "event won" @reward 1 Admin <type of event > so the NPC will broadcast "GM has rewarded potion by Admin for winning the blahblah event how can I do that? Thanks in advance
  9. it says i have no permission to DL the file :(" "We could not find the file specified"
  10. none. problem fixed. just rebooted my VPS THX
  11. Hi can anyone help me with this . I already disable client has checking in login-server.conf // Client MD5 hash check // If turned on, the login server will check if the client's hash matches // the value below, and will not connect tampered clients. // Note: see doc/md5_hashcheck.txt for more details. client_hash_check: off // Client MD5 hashes // The client with the specified hash can be used to log in by players with // a group_id equal to or greater than the given value. // If you specify 'disabled' as hash, players with a group_id greater than or // equal to the given value will be able to log in regardless of hash (and even // if their client does not send a hash at all.) // Format: group_id, hash // Note: see doc/md5_hashcheck.txt for more details. //client_hash: 0, e36e06fae07c34ff1149e0e42eeb252e //client_hash: 10, cb1ea78023d337c38e8ba5124e2338ae //client_hash: 99, e36e06fae07c34ff1149e0e42eeb252e and even recompiled and restarted many times I also diffed a new client without the force send client hash my client is 20130807.
  12. thank you emistry, how to add a message in the chatbox on how much he get based on the random number.
×
×
  • Create New...