Jump to content

skyroofficial

Members
  • Posts

    21
  • Joined

  • Last visited

Profile Information

  • Gender
    Male
  • Location
    Indonesia

Recent Profile Visitors

803 profile views

skyroofficial's Achievements

Poring

Poring (1/15)

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

Recent Badges

0

Reputation

  1. Hi again ! I might ask as the title says.. Can a script or anything that could make any item created by a gm become un-trade/drop-able ? Thanks alot for the answers !
  2. hi ! sorry for the late replies. tested .. but it didnt work
  3. So, hi again I would like to request an npc that looks like this If the player have this item 32508 , they can use command @vipbuff and also, if the player have vip status (group_id 5 as default on SQL) , they also can use command @vvipbuff Thanks for the replies !
  4. yep . already solved it few hours ago and thus.. theres this one left
  5. yes but you know.. there are alot.. lots of the list on the logs.. so thats why i tried to make a separate logs just to monitor those specified items in that specified npc that i made anyways , thanks for the reply tho
  6. So i've made the script on THIS POST that have been helped by @Emistry and @Mephisto and i tried to modify them also.. and then i start trying to make a log on SQL .. but they didnt work So this is the script i have modified ( well.. i cut to the point on the errors ) .@count_20450 = countitem( 20450 ); delitem 20450, .@count_20450; getitem 32502, ( .@count_20450 * 10 ); .@count_32171 = countitem( 32171 ); delitem 32171, .@count_32171; getitem 32502, ( .@count_32171 * 7 ); mes "Exchanged "+.@count_20450+"x "+getitemname( 20450 )+" to "+( .@count_20450 * 10 )+"x "+getitemname( 32502 ); mes "Exchanged "+.@count_32171+"x "+getitemname( 32171 )+" to "+( .@count_32171 * 7 )+"x "+getitemname( 32502 ); close; OnInit: query_sql "CREATE TABLE IF NOT EXISTS `returned` (`code` TINYTEXT NOT NULL, `item_id` INT NOT NULL, `item_amount` INT NOT NULL, INDEX `code` (`code`(32)) ) ENGINE=MyISAM"; } Oh, and also.. the NPC need to make them to type " YES " before the script runs.. how do i put them ? Any helps ? XD
  7. oh thanks i'll try xD and again.. thanks @Emistry ! well for the warning also xD
  8. Woah.. thanks ! will try this ! i'll info them shortly xD So ive tested . and the npc didnt appear somehow
  9. Hi ! so i would like to request a script.. if masters wouldnt mind xD so the scripts like this Any helps ? XD Thanks for the answers !
  10. @Litro Endemic Thanks alot ! XD its dem sexy ikr .. ! anyways thanks @Technoken
  11. Hi @Technoken . Sorry for the late response.. I do as your say, but its not working . i get this error when i tried to sent an item to all users Any helps?
  12. // usage : // [npc:Sample]map#512#10 // [npc:Sample]all#512#123 - script Sample -1,{ OnWhisperGlobal: if( getgmlevel() >= 99 ){ // check map if( @whispervar0$ == "all" ) set .@type$,""; else if( @whispervar0$ == "map" ) set .@type$,strcharinfo(3); else { dispbottom "Error, pick 'map' or 'all' "; end; } // check item set .@itemid,atoi( @whispervar1$ ); set .@amount,atoi( @whispervar2$ ); if( getitemname( .@itemid ) == "null" || .@amount < 1 ){ dispbottom "Enter valid item id and amount."; } set .@self_id,getcharid(3); query_sql( "SELECT COUNT(`account_id`) FROM `char` WHERE `online` = 1 ", .@total ); while( .@count < .@total ){ query_sql( "SELECT `account_id`,`name` FROM `char` WHERE `online` = 1 ORDER BY `account_id` LIMIT 128 OFFSET "+.@offset, .@aid,.@name$ ); set .@i,0; set .@size,getarraysize( .@aid ); while( .@i < .@size ){ if( .@aid[.@i] != .@self_id ){ if( .@type$ != "" ){ getmapxy( .@map$,.@x,.@y,0,.@name$[.@i] ); if( .@map$ == .@type$ ){ getitem .@itemid,.@amount,.@aid[.@i]; set .@gave,.@gave + 1; } }else{ getitem .@itemid,.@amount,.@aid[.@i]; set .@gave,.@gave + 1; } } set .@count,.@count + 1; set .@i,.@i + 1; } set .@offset,.@offset + .@size; deletearray .@aid,.@size; deletearray .@name$,.@size; } dispbottom "Gave "+.@amount+" x "+getitemname( .@itemid )+" to "+.@gave+" Player(s)."; } end; } So i use this script to give all players items . But this script give rewards to all players online ( include afk , vending, idle, or create chat room ) how to exclude the AFK , Vending, Idle , or Creating Chat Room ( which is still considered afk ) to not get the rewards ? Thank you for the helps !
  13. OMG i didnt see you xDD this also works like a charm ! Thanks <3
  14. Sorry abit late response but... Thank you soo much
×
×
  • Create New...